Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: No DESTROY object.

by WizardOfUz (Friar)
on Jan 22, 2010 at 14:52 UTC ( #818972=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    undef $object;
    
    print "Done.\n";
    
  2. or download this
    # Created Foo=CODE(0x82cafec)
    # Hello!
    # DESTROYing Foo=CODE(0x82cafec)
    # Done.
    
  3. or download this
    sub new {
        my $class  = shift;
        my $string = "Hello!\n";
        return bless( sub { print $string }, $class );
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://818972]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2017-11-22 02:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (314 votes). Check out past polls.

    Notices?