Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: $dbh->selectall_arrayref to simple @array

by Juerd (Abbot)
on Sep 18, 2011 at 16:04 UTC ( #926641=note: print w/ replies, xml ) Need Help??


in reply to $dbh->selectall_arrayref to simple @array

Why do you want an array without a reference? Arrays that are accessed by references can do exactly the same things, only the syntax is a bit different.

By the way, consider DBIx::Simple, which allows you to do:

my @emps = $db->query("SELECT ename FROM emp ORDER BY ename")->flat; foreach my $emp (@emps) { ... }
"flat" means: take all results and return them as one flat list.


Comment on Re: $dbh->selectall_arrayref to simple @array
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (14)
As of 2015-07-07 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls