longjohnsilver has asked for the wisdom of the Perl Monks concerning the following question:
my $query1 = " select \"column1\", \"column2\" from Database.Table where \"column +1\" in ($values_string) and \"column3\" != '2' ";
And get the following error:my $dsn2 = 'DBI:Sybase:server=xx.xx.xx.xx'; my $dbh2 = DBI->connect($dsn2, "user", 'pass'); die "unable to connect to server $DBI::errstr" unless $dbh2; my $values_array=${$dbh2->selectall_arrayref($query1)}; while (my $row = shift(@$values_array)) { print "row->[0], row->[1]\n"; }
Not a SCALAR reference at line 108
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: DBD::Sybase, selectall_arrayref "Not a SCALAR reference" error
by Corion (Patriarch) on Jun 22, 2009 at 13:31 UTC | |
Re: DBD::Sybase, selectall_arrayref "Not a SCALAR reference" error
by Transient (Hermit) on Jun 22, 2009 at 13:32 UTC | |
by longjohnsilver (Acolyte) on Jun 22, 2009 at 13:36 UTC | |
Re: DBD::Sybase, selectall_arrayref "Not a SCALAR reference" error
by Anonymous Monk on Jun 22, 2009 at 13:35 UTC | |
by longjohnsilver (Acolyte) on Jun 22, 2009 at 13:38 UTC |