Re: Combination of "while" and "for" delivers wrong result from array

2002-08-04 Thread Connie Chan
> > while () { > my @rows= split (/;/); > for my $i (0 ..$#rows) >{ >print $q->a({href=> "/cgi-bin/details.cgi?nr=$i"}, >escapeHTML($rows[0]))."\n"; >} >close ADDRESSLIST; You have closed the file handle here, but the

Combination of "while" and "for" delivers wrong result from array

2002-08-04 Thread Richard Krause
Hi all The following script displays a overwiev from a addresslist with links to the details of each entry. With an iteration I create the no. of each row that is being handed over to details.cgi. It all works perfectly well apart from the fact that the html links that get displayed all have got