|
|
| Just another Perl shrine | |
| PerlMonks |
Re^4: Quickest way of fetching a Single row and column in MySQL using DBIby cees (Curate) |
| on Aug 07, 2006 at 18:01 UTC ( #565983=note: print w/ replies, xml ) | Need Help?? |
|
Scalar context works as well according to the DBI source code:
The docs hint that this should work as well, but don't explicitly state it. Instead the docs mention this: If called in a scalar context for a statement handle that has more than one column, it is undefined whether the driver will return the value of the first column or the last. So don't do that. Anyway, it won't hurt to add the brackets in there to force list context, but it shouldn't be required.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||