Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: deep copy of hash of hash

by hippo (Bishop)
on May 27, 2019 at 10:07 UTC ( [id://11100568]=note: print w/replies, xml ) Need Help??


in reply to Re^2: deep copy of hash of hash
in thread deep copy of hash of hash

Perl is case sensitive. Here is an SSCCE:

use strict; use warnings; use Test::More tests => 2; use Clone 'clone'; my %x = ( miller => {lastname => 'michael', tel => '222'}, duran => {lastname => 'peggy', tel => '333'}, ); my %y = %{clone (\%x)}; is_deeply (\%x, \%y); $x{duran}{tel} = '444'; isnt ($x{duran}{tel}, $y{duran}{tel});

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-19 08:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found