Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$sth = $dbh->prepare($sql); $sth->execute() || die $sth->errstr; while ($pointer = $sth->fetchrow_hashref) { $line=$pointer->{'LINE'}; $ins =$pointer->{'INS#'}; $number =$pointer->{'NUMBER#'}; if($line_type) { $ result = "<td><a href=found.html?line=$line>Found $line</ +td><br>"; exit; } else { print "<META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL=notfou +nd.html\"> \n"; exit; } } } print $line;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: While Loop Problem!
by CombatSquirrel (Hermit) on Dec 12, 2003 at 15:40 UTC | |
|
Re: While Loop Problem!
by shockme (Chaplain) on Dec 12, 2003 at 15:43 UTC | |
|
Re: While Loop Problem! (architectural comment)
by talexb (Chancellor) on Dec 12, 2003 at 16:09 UTC |