Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

RE: RE: RE: RE: References of Eternal Peril (while we're on the subject)

by rdw (Curate)
on Aug 11, 2000 at 21:59 UTC ( #27560=note: print w/replies, xml ) Need Help??


in reply to RE: RE: RE: References of Eternal Peril (while we're on the subject)
in thread References of Eternal Peril

... can be written ...
$s->ar = $sth->fetchall_arrayref({}); $s->rows = @{$s->ar};
Excellent. I've been looking for fetchall_hashref for ages! This is exactly what I need - I also use a template system (not HTML::Template) and it can do the same trick with arrayrefs of hashrefs (or arrayrefs).
I guess I should look into converting my stuff to use bind_columns. Is there any (efficient) way you could tie an array to the results do you think?

Thanks Matt.

- Rich
  • Comment on RE: RE: RE: RE: References of Eternal Peril (while we're on the subject)
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://27560]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2021-01-27 00:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?