Show quoted text> How would you use Number::Phone to determine if a potentially UK number
> is valid?
>
> At the moment it looks like the best technique would be to try to
> recognise the (44) section and strip it off before passing to
> Number::Phone.
IF you don't explicitly tell the module that it's a UK number, then that's what it does. If you
do tell it that it's a UK number, then it believes you and, if the number begins with 4, it
correctly tells you that it's invalid.
Consider the case of Germany, country code 49. There are *lots* of German area codes that
also begin with 49, so we can't just assume that when you've already told the module that
you're passing it a German number, that any leading 49 can be stripped off.
What you are proposing is that the module accept random nonsense arguments and magically
figure out what you really mean.