Andy, *what* is that statement supposed to be doing?

Typically you
   1. prepare the sql
   2. execute the sql

This statement:

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

is neither.  It In fact, the warning indicates that Perl thinks you are
trying to do a comparison.  Where is the 'prepare' - where is the
'execute'??  All that statement does is set $sql equal to a string - the
die is meaningless.

Hardy Merrill


>>> Andy Hammer <[EMAIL PROTECTED]> 07/01/04 08:54PM >>>
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 fuctions fine, but I am curious why I am getting that
warning...?

-- 
Andy Hammer
Gesteland / Atkins Lab

Reply via email to