Help for this page

Select Code to Download


  1. or download this
    {  package Pkg;
       sub new     { my ($class, $text) = @_;
    ...
    our $pkg = Pkg->new('pkg var');
    END { print "END\n" }
    print("At end of script\n");
    
  2. or download this
    At end of script
    DESTROY file scope lex var
    END
    DESTROY pkg var