in reply to Re^2: selectrow_array() confusion
in thread selectrow_array() confusion
I really have shown you the right code, honestly.
This is a minimum test case
And when I run it, I get:#!/sw/bin/perl use strict; use warnings; use DBI; my $d = DBI->connect( 'DBI:mysql:imagedb:localhost', 'root', '******', { RaiseError => 1 } ) || die("couldn't connect to database"); my ( $min, $max ) = $d->selectrow_array( "SELECT min(id),max(id) from images where gallery_path like '/px6% +'") || die $d->errstr; print "min: $min; max: $max;\n";
Use of uninitialized value in concatenation (.) or string at ab.cgi li +ne 13. min: 61893; max: ;
Nobody says perl looks like line-noise any more
kids today don't know what line-noise IS ...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: selectrow_array() confusion (or vs ||)
by MidLifeXis (Monsignor) on Nov 26, 2008 at 14:01 UTC | |
by Cody Pendant (Prior) on Nov 27, 2008 at 23:14 UTC |
In Section
Seekers of Perl Wisdom