Subject: | name_from's regex doesn't allow for Perl 5.12 and Perl 5.14's new package syntaxes |
Perl 5.12 introduced:
package Foo::Bar 1.23;
...;
Perl 5.14 introduced:
package Foo::Bar { ... }
and they can be combined as:
package Foo::Bar 1.23 { ... }
The name_from regex doesn't support any of the above. It expects the package name to be followed by optional whitespace then a semicolon.