Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2016-06-26 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (331 votes). Check out past polls.