I've found this to be yet another handy feature of regexp matching, and great for the likes of map and foreach.my @nums = ("123456789" =~ /(\d{3})/g); print "$_\n" for @nums; output - 123 456 789
broquaint
In reply to Re: Splitting every 3 digits?
by broquaint
in thread Splitting every 3 digits?
by r.joseph
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |