in reply to Re: How to copy a referenced data structure?
in thread How to copy a referenced data structure?
#!/usr/bin/perl use Data::Dumper; $ar = [ [ 1,2,3 ] ]; $copy = [ @$ar ]; undef $ar; print Dumper($copy);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to copy a referenced data structure?
by syphilis (Archbishop) on May 22, 2007 at 06:49 UTC |