Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Number-Phone CPAN distribution.

Report information
The Basics
Id: 59054
Status: resolved
Priority: 0/
Queue: Number-Phone

People
Owner: Nobody in particular
Requestors: MSTEVENS [...] cpan.org
Cc: michael.smith [...] dianomi.com
michael.stevens [...] dianomi.com
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.7004
Fixed in: (no value)



CC: michael.smith [...] dianomi.com,michael.stevens [...] dianomi.com
Subject: International code required even when country specified
I expected this program to do something useful: #!/usr/bin/perl -w use strict; use Number::Phone; use Data::Dumper; my $p = Number::Phone->new("us", "(212) 796-6916"); print Dumper($p->type) . "\n"; The output is: Can't call method "type" on an undefined value at test.pl line 8. To be more useful I needed to change it to: #!/usr/bin/perl -w use strict; use Number::Phone; use Data::Dumper; my $p = Number::Phone->new("us", "+1 (212) 796-6916"); print Dumper($p->type) . "\n"; which gives me the more accurate output: $VAR1 = 'is_valid'; It seems odd to need to specific the country twice.
RT-Send-CC: michael.stevens [...] dianomi.com, michael.smith [...] dianomi.com
fixed in 1.7101