Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How do I reverse a nested array?

by extremely (Priest)
on Sep 26, 2000 at 03:56 UTC ( [id://33970]=note: print w/replies, xml ) Need Help??


in reply to How do I reverse a nested array?

sub rev_arr { my $ar = shift; ref $ar eq 'ARRAY' ? [ map rev_arr($_), reverse @$ar ] : $_ }

Log In?
Username:
Password:

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

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

    No recent polls found