sub rev_arr { my $arr_ref = shift; @$arr_ref = map { ref eq 'ARRAY' ? rev_arr($_) : $_ } reverse @$ar +r_ref; return $arr_ref; }
In reply to Re: How do I reverse a nested array?
by Anonymous Monk
in thread How do I reverse a nested array?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |