Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 chilling in the Monastery: (8)
As of 2015-07-05 04:56 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 (60 votes), past polls