Keep It Simple, Stupid | |
PerlMonks |
Re: In need of a Dumper that has no pretentions to being anything else.by grinder (Bishop) |
on Feb 23, 2005 at 10:47 UTC ( [id://433637]=note: print w/replies, xml ) | Need Help?? |
dump a perl data structure in a compact, human readable format I wrote the following pair of functions for debugging Regexp::Assemble. It only deals with hashes, arrays and undef, but it sounds like that that's all you need. The display is about as minimal and compact as I can get it.
I wasn't able to make complete sense of your data structure; I suspect you just invented it off the top of your head. Nevertheless:
produces {a=>[1 2 3] b=>[{X=>1 Y=>2} {X=>[1 2 3] Y=>[4 5 6] Z=>[7 8 9]}]}- another intruder with the mooring in the heart of the Perl
In Section
Seekers of Perl Wisdom
|
|