Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Data::Dump::Streamer is your friendby demerphq (Chancellor) |
on Jul 05, 2005 at 08:40 UTC ( [id://472387]=note: print w/replies, xml ) | Need Help?? |
Theres also Data::Dump::Streamer which has various advantages over Data::Dumper and modules that wrap it like Data::Dumper::Simple. Also Data::EasyOO is worth a look although it too currently wraps Data::Dumper. The main differences are that Data::Dump::Streamer is more accurate, and does a breadth first dump instead of a depthfirst dump. This usually means dumping recursive structures produces output that is much easier to read. It also tries a lot harder to make the output look readable by making things line up nicely and is lower in terms of memory use for many scenarios as it can stream its output to a filehandle avoiding the need to construct the full dump output in memory (which usually requires more than twice the memory of the original strucutre and on some systems requiring massive ammounts of memory copying.)
--- $world=~s/war/peace/g
In Section
Meditations
|
|