for (1 .. int(scalar @data / 5)) { my $certification = shift(@data); my $number = shift(@data); my $month = $mon[$number - 1]; my $day = shift(@data); my $year = shift(@data); my $mo_yr = shift(@data); print "Certification is $certification on $month $day $year <p\/><H +R>\n"; }
I'm guessing that there is a better way of doing this, but without knowing what the rest of the script is doing...
--greg
In reply to Re^3: Two loops
by gsiems
in thread Two loops
by loop362
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |