Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How can I access the values of an "array" extracted using Range

by oko1 (Deacon)
on Feb 19, 2012 at 15:42 UTC ( [id://954875]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Turning an arrayref into an array
    my @arr = @$aref;
    ...
    for my $i (@$aref){
        ...
    }
    
  2. or download this
    $aref = [
              [
    ...
                9
              ]
            ];
    
  3. or download this
    for my $deref (@$aref){
        for my $element (@$deref){
            print "$element\n";
        }
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found