good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Depth of AoAsby CharlesClarkson (Curate) |
on Jan 14, 2002 at 10:17 UTC ( [id://138529]=CUFP: print w/replies, xml ) | Need Help?? |
I have no clue why anyone might need this. I created it while answering a question about multidimensional arrays. It is my first successful recursive sub.
Call it with a reference to your array of arrays structure print depth( \@array );Update: Changed the fourth line to indicate the correct sub.
Back to
Cool Uses for Perl
|
|