in reply to How to determine if a package method is defined
Otherwise, if the question revolves around a sub/method being defined in a specific module, then you were close, but you forgot to consider precedence - if you'd have written defined &{$TEST->test_sub} or defined &{qq/${TEST}::test_sub/}...
P.S. Thanx for the tip almut - originally forgot the braces in the string
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to determine if a package method is defined
by almut (Canon) on Sep 30, 2009 at 23:06 UTC |