Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Here's an example of what I am talking about:
package TT; use Exporter; @ISA = qw/Exporter/; @EXPORT = qw/s1/; sub s1 { print "s1"; s2(); } sub s2 { print "s2"; } 1; perl -wle 'use TT; sub s2 { print "NO S2!"; } s1();' output: s1 s2 I want: s1 NO S2! ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Calling functions from different namespaces
by Madcap Laughs (Acolyte) on Jan 18, 2006 at 02:23 UTC | |
|
Re: Calling functions from different namespaces
by ikegami (Patriarch) on Jan 18, 2006 at 06:03 UTC | |
by Anonymous Monk on Jan 18, 2006 at 08:04 UTC | |
by blazar (Canon) on Jan 18, 2006 at 08:44 UTC | |
by ikegami (Patriarch) on Jan 18, 2006 at 14:36 UTC | |
by Anonymous Monk on Jan 19, 2006 at 01:08 UTC | |
| |
by Anonymous Monk on Jan 19, 2006 at 01:12 UTC | |
by blazar (Canon) on Jan 19, 2006 at 08:27 UTC | |
|