-
-
05 May 2005 18:08:41 UTC
- Distribution: capitalization
- Module version: 0.03
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (505 / 3 / 0)
- Kwalitee
Bus factor: 1- 92.00% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (2.1KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Devel::Symdump
- Test::More
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
capitalization - no capitalization on method names
SYNOPSIS
use XML::DOM; no capitalization 'XML::DOM'; my $parser = XML::DOM::Parser->new; # no capitalization .. my $nodes = $parser->get_elements_by_tag_name("Foo"); # this can be OK my $nodes = $parser->getElementsByTagName("Foo");
DESCRIPTION
capitalization.pm allows you to use familiar style on method naming.
RULES
- Lower case character followed by upper case sequence would be splitted with
_
and upper case sequence would be lower cased. Example:fooBar
would befoo_bar
. - All other upper case characters would be lower cased. Examples:
FOOs
would befoos
,_Foo
would be_foo
.
CAVEATS
no capitalization __PACKAGE__;
If you want use capitalization pragma in module and add lower case API in the module itself, then you should use pragma after all subs are defined.
AUTHOR
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Module Install Instructions
To install capitalization, copy and paste the appropriate command in to your terminal.
cpanm capitalization
perl -MCPAN -e shell install capitalization
For more information on module installation, please visit the detailed CPAN module installation guide.