Help for this page

Select Code to Download


  1. or download this
    package ForeignModule;
    sub NEXT { print scalar caller }
    1;
    
  2. or download this
    package Foo;
    # there is no do_something
    ...
        *{"$target:\:do_something"} = \&ForeignModule::NEXT;
    }
    1;
    
  3. or download this
    package main;
    use strict;
    ...
    
    use Foo;
    do_something();