1capitalization(3)     User Contributed Perl Documentation    capitalization(3)
2
3
4

NAME

6       capitalization - no capitalization on method names
7

SYNOPSIS

9         use XML::DOM;
10         no capitalization 'XML::DOM';
11
12         my $parser = XML::DOM::Parser->new;
13
14         # no capitalization ..
15         my $nodes = $parser->get_elements_by_tag_name("Foo");
16
17         # this can be OK
18         my $nodes = $parser->getElementsByTagName("Foo");
19

DESCRIPTION

21       capitalization.pm allows you to use familiar style on method naming.
22

RULES

24       Lower case character followed by upper case sequence would be splitted
25       with "_" and upper case sequence would be lower cased. Example: "foo‐
26       Bar" would be "foo_bar".
27       All other upper case characters would be lower cased. Examples: "FOOs"
28       would be "foos", "_Foo" would be "_foo".
29

CAVEATS

31       "no capitalization __PACKAGE__;"
32
33       If you want use capitalization pragma in module and add lower case API
34       in the module itself, then you should use pragma after all subs are
35       defined.
36

AUTHOR

38       Tatsuhiko Miyagawa <miyagawa@bulknews.net>
39
40       This library is free software; you can redistribute it and/or modify it
41       under the same terms as Perl itself.
42

SEE ALSO

44       Symbol::Approx::Sub
45
46
47
48perl v5.8.8                       2005-05-05                 capitalization(3)
Impressum