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

Re: Array of arrays

by GrandFather (Saint)
on Feb 21, 2006 at 17:47 UTC ( [id://531748]=note: print w/replies, xml ) Need Help??


in reply to Array of arrays

An AoA is an array of scalars holding references to arrays. So assuming that you either have an AoA or a simple array, you can:

last if ref $array[0];

DWIM is Perl's answer to Gödel

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-25 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found