Andy Hammer wrote:
I am getting the warning:
Found = in conditional, should be == at NM_000367.pl line 32.

line 32 contains my sql query:
my $sql = qq{ SELECT * FROM fasta WHERE accession LIKE 'NM_000367' }
             or die "Can't prepare SQL statement:
",$ucscHandle->errstr(), "\n";

The query functions fine, but I am curious why I am getting that warning...?

I you're quoting verbatim - where's the prepare?

If you take those three lines, 'perl -c' says "Syntax OK", but 'perl -w -c' gives you that warning "Found = in conditional, should be == at x.pl line 1.". A semi-colon after the '}' fixes the first line. Adding my $sth = $ucscHandle->prepare($sql) before the 'or' provides the missing functionality.


--
Jonathan Leffler ([EMAIL PROTECTED], [EMAIL PROTECTED]) #include <disclaimer.h>
Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/

Reply via email to