Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 cooling their heels in the Monastery: (8)
As of 2014-12-27 16:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls