in reply to Parsing a Text File
parses the blank line after the Cardinals, it stops. So change that line to:last if /^\s*$/;
and add 'END PITCHING' on a line by itself after the last line for the Reds.last if /^END PITCHING/;
Also, you can get rid of all 16 TD prints with this one line:
UPDATE: Oops, you don't want to print the first element, so use this:print "<td>$_</td>" foreach @LS;
and good advice suaveant!print "<td>" . $LS[$_] . "</td>" for (1..$#LS);
Jeff
R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) Re: Parsing a Text File
by suaveant (Parson) on Apr 11, 2001 at 23:19 UTC | |
by Perl Newby (Acolyte) on Apr 11, 2001 at 23:49 UTC | |
by suaveant (Parson) on Apr 11, 2001 at 23:52 UTC |