for (my $int = 1; $int <= 999999999999; $int++) { my $leading = sprintf("%012d", $int); my @split = ($leading =~ /../g); print join(':', @split) . "\n"; print join('.', @split) . "\n"; }
In reply to Re: How to separate digits
by reasonablekeith
in thread How to separate digits
by imperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |