Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

drhyde (1683)

  (email not shown publicly)

Journal of drhyde (1683)

Thursday October 21, 2004
05:19 AM

More Number::Phone

[ #21450 ]
Fly free, version 1.3! Defined two new methods after discussions with Dermot McNally:
  • areaname() - returns the name of an area code, so for a +44 20 number it'll tell you London.
  • translates_to() - allows you to figure out how different bits of number-space can map onto each other. Dermot will probably use it for +353 48 numbers which map directly onto +44 28.

And T.J.Mather's module Number::Phone::Country is now maintained by me, and included in the Number::Phone distribution. I've tidied it up a bit and fixed some of its data (added some countries to the NANP, added craziness to do with Northern Ireland and Gibraltar, split +7 into Kazakhstan and Russia) but it still needs a little more work. I intend to use it when I write Number::Phone::NANP, but for now it's not really got much to do with the rest of the distribution.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I know the acronym NANP from learning it 30 years ago when it meant "North America Numbering Plan". Obviously it has been extended to take over the world but kept the same name. Has the acronym been forward engineered to have different base words?