in reply to Testing for valid package names
Roughly 10% of the 4000+ .pm files installed on my system have an underscore in the name, so I guess it's not that uncommon. (Find installed Perl modules matching a regular expression)
It seems like starting a package with a number ([0-9]) is a syntax error. You might want a check of the 1st character of the name.
See also:
- Perl::Critic::Policy::Variables::ProhibitPerl4PackageNames
- Perl::Critic::Policy::NamingConventions::Capitalization
- perlstyle
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Testing for valid package names
by boftx (Deacon) on Nov 25, 2013 at 21:20 UTC | |
by LanX (Saint) on Nov 25, 2013 at 21:24 UTC | |
by boftx (Deacon) on Nov 25, 2013 at 21:36 UTC |
In Section
Seekers of Perl Wisdom