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: 69375
Status: rejected
Priority: 0/
Queue: Number-Phone

People
Owner: Nobody in particular
Requestors: MSTEVENS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 1.8001
  • 1.8002
Fixed in: (no value)



Subject: Valid US number reported at invalid
Using 1.8001 and 1.8002 the number 866-547-5365 is reported as invalid when it's actually fine. #!/usr/bin/perl -w use strict; use warnings; use Number::Phone; my $p = new Number::Phone('+1', '866-547-536'); print $p->is_valid . "\n"; Returns: Can't call method "is_valid" on an undefined value at test_p.pl line 9.
You've got a digit missing. *All* NANP numbers are ten digits.