Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: multidimensional array's

by NetWallah (Abbot)
on Dec 27, 2012 at 23:40 UTC ( #1010598=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @allrows = @{ $sth->fetchrow_arrayref() }; # Expand ref, to simplif
    +y access
    
    my $first_author        = $allrows[0][0]; 
    my $second_author       = $allrows[1][0];
    my $first_title         = $allrows[0][1];
    
  2. or download this
    $language   = $row[2];   # Correct
    $language   = @$row[2];  # wrong (at least in perl ver 5)
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2014-08-02 07:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls