imperl has asked for the wisdom of the Perl Monks concerning the following question:
$" = ':'; for (my $int = 1; $int <= 999999999999; $int++) { my $leading = sprintf("%012d", $int); my @split = ($leading =~ /../g); print "@split\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to separate digits
by reasonablekeith (Deacon) on May 24, 2005 at 09:17 UTC | |
by imperl (Novice) on May 24, 2005 at 09:25 UTC | |
|
Re: How to separate digits
by prasadbabu (Prior) on May 24, 2005 at 09:16 UTC | |
|
Re: How to separate digits
by blazar (Canon) on May 24, 2005 at 10:29 UTC |