Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
However, my code doesn't appear to be doing anything at the foreach statement, thus the output is purelyopen(DATA,"myfile") or die "Can't open file"; print "<html><head><title>My page</title></head><body>"; print "<table>"; while(<DATA>) { my @elements = split('\|',$_); print "<tr>"; foreach my $el(@elements) { print "<td>$el</td>"; } print "</tr>"; } print "</table></body></html>";
Thoughts?<tr></tr>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: string parsing
by mirod (Canon) on Apr 10, 2001 at 19:48 UTC | |
by tye (Sage) on Apr 10, 2001 at 22:09 UTC | |
by mirod (Canon) on Apr 11, 2001 at 22:00 UTC | |
|
Re: string parsing
by converter (Priest) on Apr 10, 2001 at 22:23 UTC | |
|
Re: string parsing
by Anonymous Monk on Apr 10, 2001 at 19:39 UTC | |
by astanley (Beadle) on Apr 10, 2001 at 19:45 UTC | |
|
Re: (Zigster) string parsing
by zigster (Hermit) on Apr 10, 2001 at 19:51 UTC | |
by ok (Beadle) on Apr 10, 2001 at 20:37 UTC | |
by Anonymous Monk on Apr 10, 2001 at 20:31 UTC | |
by zigster (Hermit) on Apr 10, 2001 at 20:43 UTC | |
|
Re: string parsing
by wardk (Deacon) on Apr 10, 2001 at 22:17 UTC |