in reply to Is this logic correct? Maybe can be rewritten better?
This doesn't make a lot of sense; you probably want to scope $hostmatch outside the while loop.while( $row = $sth->fetchrow_hashref ) { if( $host eq $row->{host} ) { my $hostmatch = 1; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is this logic correct? Maybe can be rewritten better?
by ikegami (Patriarch) on Apr 29, 2005 at 15:06 UTC | |
|