Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: hash ref mind blow

by Anonymous Monk
on Sep 25, 2008 at 08:55 UTC ( #713601=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://713601]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2021-05-17 00:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (152 votes). Check out past polls.

    Notices?