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