loop362 has asked for the wisdom of the Perl Monks concerning the following question:
For brevity I'm posting the code that is my problem, I'm not sure to do that or paste everything, but hey I'm sure I'll find out. I will also take any advice that you wise ones wish to give. Mahalo
Joseph W. Guillaume
#$lines is how many big loops #I know there will be 5 lines of data in each loop $lines =scalar@data/5; #print "LINES $lines<p\/>"; #for ($i=1; $i<=$lines; $i++) { foreach ($lines) { for ($i=1; $i<=4; $i++) { $certification = shift(@data); print "Certification is $certification on "; $number = shift (@data); $month = $mon [$number-1]; print "$month"; $day = shift (@data); print " $day"; $year = shift(@data); print " $year"; $mo_yr = shift(@data); #print " $mo_yr"; print "<p\/><HR>"; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Two loops
by thcsoft (Monk) on May 27, 2005 at 04:33 UTC | |
Re: Two loops
by monarch (Priest) on May 27, 2005 at 04:28 UTC | |
Re: Two loops
by djohnston (Monk) on May 27, 2005 at 06:52 UTC | |
Re: Two loops
by holli (Abbot) on May 27, 2005 at 04:27 UTC | |
by loop362 (Pilgrim) on May 27, 2005 at 04:39 UTC | |
by gsiems (Deacon) on May 27, 2005 at 13:26 UTC | |
Re: Two loops
by holli (Abbot) on May 27, 2005 at 15:16 UTC |