in reply to How to print the deep content of the array?

Of course it's more fun to do it yourself. Try this:
my @ary = (1, ['a', 'b', [], [3, [0], 5]]); print_deep_array(\@ary); print "\n"; sub print_deep_array($) { my $arrRef = shift; for (my $i = 0; $i < scalar(@$arrRef); ++$i) { if (ref($arrRef->[$i]) eq 'ARRAY') { print ', ' if ($i); print '['; print_deep_array($arrRef->[$i]); print ']'; } else { print ', ' if ($i); print $arrRef->[$i]; } } print ' ' if (!scalar(@$arrRef)); }