Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    sub My::Test::Class::Destructor::DESTROY { $called++; };
    destroyed_ok($foo4,"Simple class with two references");
    is($called,1,"Previous destructor gets called");
    
  2. or download this
    package Test::DESTROY;
    use strict;
    ...
        $Test->diag($fail_reason);
      };
    };