Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: hash dereferencing / copying

by PrakashK (Pilgrim)
on Feb 27, 2002 at 15:34 UTC ( #147926=note: print w/ replies, xml ) Need Help??


in reply to Re: hash dereferencing / copying
in thread hash dereferencing / copying

Or, Data::Dumper (it is slower than Storable though).

use Data::Dumper; my $this = {a => 1, b => {bb => [ 'ccc' ]}, c => 3}; # clone $this into $that my $that = eval Data::Dumper::Dumper($a);
/prakash


Comment on Re: Re: hash dereferencing / copying
Download Code
Replies are listed 'Best First'.
Re: Re: Re: hash dereferencing / copying
by IlyaM (Parson) on Feb 27, 2002 at 23:18 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2015-07-29 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls