Hi guys
I'm trying to work out if a table exists in my database, using an object which inherits from DBI.
my $TableExists = $dbh->fetchrow_array;
if ( $TableExists = "NO") { warn "No table";}
Now my question is...surely there is a way of combining the $dbh->fetchrow_arraty into the if statement, instead of having to assign it to the variable and then evaluate that.
Kind regards,
I'm trying to work out if a table exists in my database, using an object which inherits from DBI.
my $TableExists = $dbh->fetchrow_array;
if ( $TableExists = "NO") { warn "No table";}
Now my question is...surely there is a way of combining the $dbh->fetchrow_arraty into the if statement, instead of having to assign it to the variable and then evaluate that.
Kind regards,