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

Re: Result set into array

by imp (Priest)
on Nov 19, 2006 at 02:41 UTC ( [id://584912]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     my $hoh = $dbh->selectall_hashref($sql, $index_column);
    
  2. or download this
    $hoh = {
        1 => {id => 1, col2=>"abc", col3=>"def",    col4=>"ghi"},
        2 => {id => 2, col2=>"lmn", col3=>"opq",    col4=>"rst"},
    }
    
  3. or download this
     my $aoa = $dbh->selectall_arrayrefref($sql);
    
  4. or download this
    $aoa = [
        [1,"abc", "def", "ghi"],
        [2,"lmn", "opq", "rst"],
    ]
    
  5. or download this
     my $aoh = $dbh->selectall_arrayref($sql, {Slice => {}});
    
  6. or download this
    $aoh = [
        {id => 1, col2=>"abc", col3=>"def",    col4=>"ghi"},
        {id => 2, col2=>"lmn", col3=>"opq",    col4=>"rst"},
    ]
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-03-29 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found