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; } }
In reply to Re: Is this logic correct? Maybe can be rewritten better?
by trammell
in thread Is this logic correct? Maybe can be rewritten better?
by Nik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |