quantum.mechanic.1964
Recent Actions
-
Commented on Debuging method for perl Complex data structures
Are any of my comments getting through? There's no indication, just a new blank comment field. (At least it's not saying I have to logout and back in again because my session timed out.)...
-
Commented on Debuging method for perl Complex data structures
I need to examine deep, complex objects in debug every day, so I came up with my_dumper. It takes a name string, and a ref, and has some additional options, such as to limit depth. You can also see the...
-
Commented on Austin Question
Liquid nitrogen is used to generate "dry nitrogen" (gas), to pressurize the cables and keep moisture out....
Comment Threads
-
educated_foo commented on
Debuging method for perl Complex data structures
Getting any text posted here is a minor achievement. I think you can do syntax highlighting by using both "code" and "pre" tags, but checking this by using "preview" would probably either not work or log me out. People have also embedded iframes to other sites to do syntax highlighting. (And yes, my session had expired when I tried to post this. This site is pathetic.)
-
Ross Attrill commented on
Debuging method for perl Complex data structures
I have been using
use Data::Dump qw(dump);
and finding it to be excellent in most circumstances.
-
chimerix commented on
Debuging method for perl Complex data structures
I never use Data::Dumper. Depending on circumstances, I use Data::Printer or Data::Dump.
FYI Ross, Data::Dump exports 'dd' by default which is easier to remember and type and also avoids accidental coredumps if you forget to explicitly import 'dump'.
-
Jay Allen commented on
Debuging method for perl Complex data structures
Data::Dumper is like a trusty dog. Always there, a reliable friend, licks his backside more often than I'd like after I ask him to print out a particularly complex data structure or object…
For most things, I'm now using Data::Printer...
Data::Printer is actually a "better" alternative if you just need to have nice printouts of data with coloring to guid your eye and some smart auto detection
It's not just pretty, but damn if it isn't powerful[1], customizable[2] and seriously eyeball-[3] and keystroke-saving[4]. Read just the author's
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.