in reply to Re^2: hash ref mind blow
in thread hash ref mind blow

Just so you know, Data::Dumper is part of every perl
#!/usr/bin/perl -- use strict; my %hash = (); $hash{a}{drinks}=1; $hash{b}{drinks}=2; my $p = \%hash; my %copy = %{ $p }; use Data::Dumper; print Dumper( \%hash, \%copy, $p ); __END__ $VAR1 = { 'a' => { 'drinks' => 1 }, 'b' => { 'drinks' => 2 } }; $VAR2 = { 'a' => $VAR1->{'a'}, 'b' => $VAR1->{'b'} }; $VAR3 = $VAR1;

Replies are listed 'Best First'.
Re^4: hash ref mind blow
by JadeNB (Chaplain) on Dec 28, 2009 at 00:11 UTC
    Just so you know, Data::Dumper is part of every perl
    Every modern Perl, of course:
    $ corelist Data::Dumper Data::Dumper was first released with perl 5.005