Help for this page

Select Code to Download


  1. or download this
    $ perl -wE 'sub DESTROY {say "ping"} my $x = bless [];'
    ping
    $ perl -wE 'sub DESTROY {say "ping"} my $x = bless []; exec "echo"'
    
    $
    
  2. or download this
     Note that "exec" will not call your "END" blocks, nor will it
     invoke "DESTROY" methods on your objects.