herby1620 has asked for the wisdom of the Perl Monks concerning the following question:
Which gives a nice thing indicating that the argument is a hash (duh!).%hash = {this => "one", that => two}; print Dumper (%hash);
I'm basically a "printf" kind of debugger. It works quite well, and I've used this in Perl. This SHOULD be a simple task without TOO much trouble. Someone must know a SIMPLE solution that will print out the key/value pairs kinda like:
this => "one", that => "two"
Of course I could write a routine (a bother!) that will iterate thru the keys, and print the values, but HASN'T someone done this already, or haven't I looked at the right place. Argggggg!!
The next lesson will be writing a "hello world" program :-)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: dumping a hash
by imp (Priest) on Aug 08, 2006 at 23:34 UTC | |
by imp (Priest) on Aug 08, 2006 at 23:36 UTC | |
Re: dumping a hash
by GrandFather (Saint) on Aug 09, 2006 at 00:04 UTC | |
Re: dumping a hash
by planetscape (Chancellor) on Aug 09, 2006 at 01:04 UTC | |
Re: dumping a hash
by ikegami (Patriarch) on Aug 08, 2006 at 23:35 UTC | |
Re: dumping a hash
by McDarren (Abbot) on Aug 09, 2006 at 04:05 UTC | |
Re: dumping a hash
by gam3 (Curate) on Aug 09, 2006 at 02:05 UTC |