Help for this page

Select Code to Download


  1. or download this
    my $var = 1;
    sub A::DESTROY { $var = 2; die 'ok'; $var = 3; }
    ...
    $obj = ''; # no exception occurs
    print "$var\n"; # 2
    print "$@\n";   # "        (in cleanup) ok at - line 1."