in reply to Detect undefined subroutines
Here "$thing" could be any type of object, so it is impossible for the compiler to know what package to check for the existance of the method.sub foo { my $thing = shift; $thing->bar(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Detect undefined subroutines
by dragonchild (Archbishop) on Sep 17, 2004 at 18:40 UTC |