|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: Speeding up the DBIby spazm (Monk) |
| on Dec 17, 2008 at 20:57 UTC ( [id://731056]=note: print w/replies, xml ) | Need Help?? |
|
The idiom listed above is slightly flawed, perhaps the behavior of fetchall_arrayref has changed in the last few years?
Original:
From perldoc DBI: The difference being: || []. fetchall_arrayref is returning undef instead of an empty arrayref. The original code as listed will give an annoying "attempt to use undefined value as an ARRAYREF" style error after processing the last line of sql output. The error line will be attributed to the last line of the while loop since the error happens in the while loop comparator.
In Section
Meditations
|
|
||||||||||||||||||||||||||||||