in reply to Detecting Overridden Methods
package PkgA; use List::Util qw( first ); BEGIN { our @ISA = qw( ... ); } sub foo { 'Whee!' } sub check { return first { $_->can('foo') } @ISA; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Detecting Overridden Methods
by ikegami (Patriarch) on Feb 05, 2007 at 21:49 UTC | |
by Anonymous Monk on Feb 08, 2007 at 23:58 UTC |