Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Thou Shall Not Covet thy Object's Internals

by brian_d_foy (Abbot)
on Jan 16, 2006 at 04:15 UTC ( [id://523388]=note: print w/replies, xml ) Need Help??


in reply to Re: Thou Shall Not Covet thy Object's Internals
in thread Thou Shall Not Covet thy Object's Internals

Perl ties don't prevent you from accessing the object data. You can get the object back with tied, or say the return value from tie.

my $object = tie my $scalar, 'Tie::Scalar::SomethingCool'; my $object2 = tied( $scalar );

Of course, people have to do a little more work to do that, but the people that want to mess with your internals won't mind the work.

--
brian d foy <brian@stonehenge.com>
Subscribe to The Perl Review

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2025-06-24 13:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.