in reply to DBD::Sybase, selectall_arrayref "Not a SCALAR reference" error
is trying to tell Perl that the return value for selectall_arrayref is a scalar reference, which it isn't. Changing this to:my $values_array=${$dbh2->selectall_arrayref($query1)};
should fix that particular problem. You don't need to tell Perl what kind of reference is being returned until you access it.my $values_array=$dbh2->selectall_arrayref($query1);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: DBD::Sybase, selectall_arrayref "Not a SCALAR reference" error
by longjohnsilver (Acolyte) on Jun 22, 2009 at 13:36 UTC |