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:
26       "fooBar" 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       If you want use capitalization pragma in module and add lower case API
33       in the module itself, then you should use pragma after all subs are
34       defined.
35

AUTHOR

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

SEE ALSO

43       Symbol::Approx::Sub
44
45
46
47perl v5.30.0                      2019-07-26                 capitalization(3)
Impressum