Have you needed to parse any number into a normalized number? This Perl function will do just that. Any number you plug into it will come back normalized and consistent: international, extensions, you name it. Feel free to cut the contents and paste them into your own script.
In the coming weeks and months, I will reissue this normalizer in PHP, ASP and other languages. Enjoy!
tags: Perl CGI normalization functions