in reply to Calling functions from different namespaces
If I were to guess, I'd say you were trying to override "s2" in some existing package, without modifying the module. If that's indeed what you are trying to do, then the best you could do would be to replace "s2" entirely:
perl -wle 'use TT; sub TT::s2 { print "NO S2!"; } s1();'
To avoid the warning:
perl -wle 'use TT; BEGIN { undef *TT::s2; } sub TT::s2 { print "NO S2! +"; } s1();'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Calling functions from different namespaces
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 blazar (Canon) on Jan 19, 2006 at 08:38 UTC | |
| |
by Anonymous Monk on Jan 19, 2006 at 01:12 UTC | |
by blazar (Canon) on Jan 19, 2006 at 08:27 UTC | |
by Anonymous Monk on Jan 19, 2006 at 22:04 UTC |