Unix Programming - How to print like debuggers `x $HASH`

This is Interesting: Free IT 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, 5:51 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






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com