Does this fail or die? I expect it dies....
getData{ my $passed_sql = shift; my $sql = "SELECT COUNT(*) etc blah blah"; die "I am not passing expected SQL! I got '$passed_sql'\n" unless +$passed_sql eq $sql; my ($total_cols) = $dbh->selectrow_array($sql) or die($dbh->errstr +);
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In reply to Re: when is a string not a string?
by tachyon
in thread when is a string not a string?
by purge
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |