Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Adding Leading Zerosby Anonymous Monk |
on Aug 29, 2016 at 17:27 UTC ( [id://1170719]=note: print w/replies, xml ) | Need Help?? |
Simple trick with perl. use strings instead of numbers: foreach my $index ('00'..'12') { vs foreach my $index (00..12) {
In Section
Seekers of Perl Wisdom
|
|