in reply to subroutine reference parameters
If you're not too fussy about how the hash's contents are formatted, you could just use the Core Data::Dumper module:
In addition to arrays and hashes, this can be used for arbitrarily complex Perl data structures.use warnings; use strict; use Data::Dumper; my %hash = (0 => 'a', 1 => 'b', 2 => 'c'); print Dumper(\%hash); __END__ $VAR1 = { '1' => 'b', '0' => 'a', '2' => 'c' };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: subroutine reference parameters
by Marshall (Canon) on Jun 03, 2011 at 18:17 UTC |