in reply to Attempt to uninherit method
sub bar { my $class = shift; if ( my $f = $class->can("foo") ) { if ( ! defined(&$f) ) { print "foo is undefined\n"; return; } print "yes, I can foo\n"; Bar->$f(); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Attempt to uninherit method
by ysth (Canon) on Dec 21, 2007 at 05:42 UTC | |
by runrig (Abbot) on Dec 21, 2007 at 05:49 UTC |