Help for this page

Select Code to Download


  1. or download this
    package Maker;
    
    ...
        no strict 'refs';
        *{ $pkg . '::go' } = $sub;
    }
    
  2. or download this
    package Foo;
    
    ...
    sub new { return bless { }, $_[0] }
    
    Maker->make;
    
  3. or download this
    package main;
    
    my $o = Bar->new;
    $o->go;
    
  4. or download this
    w00t
    Can't locate object method "go" via package "Maker" at mm.pl line 11.