Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: List Wrapper for Object Methods.

by Arunbear (Parson)
on Dec 03, 2004 at 12:01 UTC ( #412094=note: print w/ replies, xml ) Need Help??


in reply to Re^2: List Wrapper for Object Methods.
in thread List Wrapper for Object Methods.

To get around that you can add the line

return if $AUTOLOAD =~ /::DESTROY$/;
at the beginning of the AUTOLOAD sub, or define a do-nothing DESTROY method (assuming you really don't have any cleanup to do). Perl calls the DESTROY method when it does garbage collection, even if you haven't defined a DESTROY method.


Comment on Re^3: List Wrapper for Object Methods.
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2014-08-28 15:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (263 votes), past polls