Don't ask to ask, just ask | |
PerlMonks |
Re: Re: Dereferencing and DBI methodsby Cirollo (Friar) |
on Jul 25, 2001 at 04:03 UTC ( [id://99523]=note: print w/replies, xml ) | Need Help?? |
You just made it look like the first example.
My point is that some of the aggregate functions only return refs, and don't have a counterpart that returns an actual array. selectcol_arrayref, fetchall_arrayref, fetchrow_hashref to name a few. So, you have to either dereference them when you make the call, or use an intermediate variable, or dereference them as you use them (and the first is usually most convenient for me; it makes the things I do later a lot more readable).
In Section
Seekers of Perl Wisdom
|
|