Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The goal would be to turn $r2 back into a hash of hashes.#!/usr/bin/perl -w use strict; use Data::Dumper; my @ray=qw(bob me other); my %hash; foreach (@ray) {my %tmp=("one", "$_+1", "two", "$_+2", "three", "$_+3" +); %{$hash{$_}}=%tmp} my $ref=\%hash; my $r2=Dumper($ref); print $r2; $Data::Dumper::Purity=1; #?????????eval??
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: use of eval and Data::Dumper
by lamp (Chaplain) on Sep 27, 2008 at 16:42 UTC | |
|
Re: use of eval and Data::Dumper
by broomduster (Priest) on Sep 27, 2008 at 15:32 UTC | |
by Anonymous Monk on Sep 27, 2008 at 16:04 UTC | |
by ikegami (Patriarch) on Sep 27, 2008 at 19:00 UTC | |
|
Re: use of eval and Data::Dumper
by moritz (Cardinal) on Sep 27, 2008 at 16:44 UTC | |
by Your Mother (Archbishop) on Sep 27, 2008 at 19:01 UTC | |
|
Re: use of eval and Data::Dumper
by repellent (Priest) on Sep 27, 2008 at 18:37 UTC | |
|
Re: use of eval and Data::Dumper
by planetscape (Chancellor) on Sep 28, 2008 at 11:11 UTC |