HamNRye has asked for the wisdom of the Perl Monks concerning the following question:
Looking at the above, and assuming that my dats are E0209.dat, F0210.dat, and H0211.dat, I get:sub get_section { print join ':', @_ ; for (@_) { print ; /\.dat/ && do {$file = join '/', ($docdir, $_); $pubdate = substr ($_, 1, 4); print "$file \:\: $pubdate\n" ; @dat = get_file($file) ; sort_dat(@dat) ; print_sect() ; } ; } }
Shouldn't the "for" take care of looking at every value in the array?? If not, I am without my Perl Refs and would appreciate a quick fix. Thanks, Hammy
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Guildenstern) Re: Not looping... Am I a moron?
by Guildenstern (Deacon) on Feb 21, 2001 at 00:21 UTC | |
by HamNRye (Monk) on Feb 21, 2001 at 00:26 UTC | |
|
(tye)Re: Not looping... Am I a moron?
by tye (Sage) on Feb 21, 2001 at 00:27 UTC | |
|
Re: Not looping... Am I a moron?
by bliz (Acolyte) on Feb 21, 2001 at 00:23 UTC | |
|
Re: Not looping... Am I a moron?
by Hot Pastrami (Monk) on Feb 21, 2001 at 00:16 UTC |