At 8:37 PM -0800 3/9/12, 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?

You could adapt the method suggested by 'perldoc -q commas' "How can I output my numbers with commas added?"


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to