Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: On the involuntary encapsulation violation

by Aristotle (Chancellor)
on Aug 28, 2003 at 12:41 UTC ( [id://287338]=note: print w/replies, xml ) Need Help??


in reply to On the involuntary encapsulation violation

If I pass \@array to something, I expect to be able to "garble" that data. If I want to give it a copy, I write @array .

And what if you get passed an arrayful or references? If you make a copy of the array, the references in it still point to the same things. You'd need to make a deep copy..

This is not something your module is not handling correctly. I submit that it's a misconception in your expectations. Perl is not a functional language.

Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-03-28 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found