in reply to Read the Dumper data back to a hash.
Don't dump the hash as
print Dumper %hash;
But rather use
print Dumper \%hash; # ^
Then you can simply use eval to obtain a hash reference, so for example
my %copied_hash = %{ eval $string };
Perl 6 - links to (nearly) everything that is Perl 6.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Read the Dumper data back to a hash.
by rachitmohta11 (Novice) on Jun 21, 2010 at 07:07 UTC | |
by ikegami (Patriarch) on Jun 21, 2010 at 07:10 UTC | |
by rachitmohta11 (Novice) on Jun 21, 2010 at 09:01 UTC | |
by Anonymous Monk on Jun 21, 2010 at 13:15 UTC | |
by Herkum (Parson) on Jun 21, 2010 at 13:14 UTC |
In Section
Seekers of Perl Wisdom