Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: multidimensional array's

by NetWallah (Canon)
on Dec 27, 2012 at 23:40 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1010598]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-24 01:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found