Subject: | Number::Phone::new not working as documented |
The documentation for new states:
Can be called with either one or two parameters. The *first* is an
optional country code (see the country() method).
The actual sub new is:
sub new {
my($class, $number) = @_;
...
Depending on intention, either the documentation needs fixing or sub new
should be:
sub new {
my $class = shift;
my $number = "@_";