Help for this page

Select Code to Download


  1. or download this
    my $local1 = my_module->new();
    $local1->func1();
    ...
    use base qw(a_module);
    sub func1 { shift->do_something1() }
    sub func2 { shift->do_something2() }
    
  2. or download this
    sub new {
        my $class = shift;
        return bless a_module->new(), ref($class) || $class;
    }