Subject: | fault() is called on $res without checking to see if $res is defined. |
This output illustrates the bug:
####
Use of uninitialized value in pattern match (m//) at
my_www_salesforce/lib/perl5/WWW/Salesforce/Simple.pm line 35.
MALFORMED_QUERY:
Select * from Users
^
ERROR at Row:1:Column:7
unexpected token: '*' at www_salesforce.pl line 25
Can't call method "fault" without a package or object reference at
my_www_salesforce/lib/perl5/WWW/Salesforce/Simple.pm line 42.
####
The related code looks like this:
my $res = $self->query( query => $query, limit => $limit );
if ( $res->fault() ) {
####
It looks like it's important to check that "$res" is actually defined
before calling "fault()" on it.
Mark