No need to use sprintf there, just use strings:foreach my $hour (map { sprintf "%02d", $_ } 0 .. 23) { # Do Stuff Here }
foreach my $hour ( '00' .. '23' ) { # Do Stuff Here }
In reply to Re^2: Perl Hash Files
by jwkrahn
in thread Perl Hash Files
by blundell
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |