in reply to easiest way to print the content of a hash?
There's always Data::Dumper.
Or, assuming your hash values are scalars, you can step through the keys and print out the contents, like this:
foreach (sort keys %myhash) { print "$_ : $myhash{$_}\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: easiest way to print the content of a hash?
by McDarren (Abbot) on Jul 13, 2006 at 15:48 UTC | |
by japhy (Canon) on Jul 13, 2006 at 18:22 UTC | |
by tinita (Parson) on Jul 13, 2006 at 20:39 UTC | |
|
Re^2: easiest way to print the content of a hash?
by saberworks (Curate) on Jul 13, 2006 at 15:59 UTC |