Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: How to create a new array with the same name as an existing one in a loop?

by karlgoethebier (Abbot)
on Aug 16, 2021 at 14:24 UTC ( [id://11135883]=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to create a new array with the same name as an existing one in a loop?
in thread How to create a new array with the same name as an existing one in a loop?

«…i want to be able to copy everything…»

Probably this is possible:

use MyClass; use Storable qw(dclone); my $object = MyClass->new(); my $clone = dclone($object); # NB.: Untested

But I doubt that you really want this.

«The Crux of the Biscuit is the Apostrophe»

  • Comment on Re^4: How to create a new array with the same name as an existing one in a loop?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-23 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found