Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How to print the deep content of the array?

by chromatic (Archbishop)
on Sep 21, 2000 at 07:08 UTC ( [id://33444]=note: print w/replies, xml ) Need Help??


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

If it doesn't need to be in that exact format, the built in Data::Dumper module is quite nice:
use Data::Dumper; print Dumper(\@ary);
Otherwise, you'll have to loop through the elements of the array, checking them with ref and recursing when necessary. It's doable, but not terribly fun.

Log In?
Username:
Password:

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

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

    No recent polls found