Rather than updating the phone number with REs, why not:
printf(), sprintf() and unpack() functions are generally considered efficient.my $phone = '1234567890'; printf("(%s)%s-%s\n", unpack "A3 A3 A*", $phone);
In reply to Re: formatted phone number from variable
by jaa
in thread formatted phone number from variable
by powerhouse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |