For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > November 2004 > How to print like debuggers `x $HASH`









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to print like debuggers `x $HASH`
Ian Pellew

2004-11-19, 8:57 pm

Hi All;

Isthere a sub/mod to print a HASH like the debugs print of a hash:-

EG:-
$t_xmlin = eval{XMLin($xml, forcearray=>0, NormaliseSpace=>2)};

DB<2> x $t_xmlin
0 HASH(0x22a84a8)
'define' => HASH(0x22a840c)
'gen_dir' => 'c:/Program Files/Apache Group/Apache2/cgi-bin/Pages/Generated/'
'src_dir' => 'c:/Program Files/Apache Group/Apache2/cgi-bin/Pages/'
Etc.

This a lot easier than the Dumper output.

Regards
Ian
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com