while(my $line = <$info>) { foreach ($line) { chop; @vlinks = split(/:/,$_) ; print "<tr><td><a href=\"bookDETAIL.cgi?book=$vlinks[1]\">$vli +nks[0]</a></td><td>$vlinks[2]</td><td>$vlinks[3]</ +a></td></tr>" } }
Some notes on that piece of code:
while (<$info>) { @vlinks=split /:/; # ... }
Alexander
In reply to Re:Sorting Text File for HTML Output
by afoken
in thread Sorting Text File for HTML Output
by michael.kitchen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |