perlquestion
Cody Pendant
If I do this:
<code>
my $d = DBI->connect( 'stuff', 'user', 'pass' )
|| die("couldn't connect to database");
my ($min,$max) = $d->selectrow_array(
"SELECT min(id),max(id) from images where foo like 'bar%'"
)
</code>
then $max comes out undef.
<p>
But if I run that from the command line mysql client, it looks fine.
<code>
mysql> SELECT min(id),max(id) from images where foo like 'bar%';
+---------+---------+
| min(id) | max(id) |
+---------+---------+
| 61893 | 62437 |
+---------+---------+
1 row in set (0.59 sec)
</code>
So, what am I missing?
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-87399">
<HR>
<BR>
<blockquote>
Nobody says perl looks like line-noise any more<br>
kids today don't know what line-noise IS ...
</blockquote>
</div></div>