- or download this
package Orig;
use Exporter;
...
sub orig { print "&Orig::orig runs\n" }
sub repl { print "&Orig::repl runs (O No!)\n" }
1;
- or download this
package Repl;
use warnings;
...
no warnings 'redefine';
sub repl { print "&Repl::repl runs $/" }
1;
- or download this
#!/usr/bin/perl
# client program
...
repl();
orig();
- or download this
&Repl::repl runs
&Orig::orig runs