On 3/9/12 8:37 PM, Noah wrote:
Hi there,I am trying to insert a '.' every four characters. Say I have a $it = '123456789012' and want the result to be '1234.5678.9012' whats one of the smoothest ways to do that?
okay I answered my own question. I am wondering if there is a different way?
I did: $it =~ s/(\S{4})/$1\./g; Cheers, Noah
Cheers, Noah
-- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/