Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Questions about using array-of-arrays

by moritz (Cardinal)
on Jul 26, 2007 at 12:08 UTC ( [id://628906]=note: print w/replies, xml ) Need Help??


in reply to Questions about using array-of-arrays

You can use Storable::dclone to copy Arrays of Arrays (and other data structures):

use Storable qw(dclone); my @a = ([2, 3], [5, 6]); my $copy_ref = dclone(\@a); my @copy = @{ dclone(\@a) };

(Untested, no perl available atm :()

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-19 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found