in reply to Re^5: Function name in a variable, can't recall the concept (introspection with ->can )
in thread Function name in a variable, can't recall the concept
So it is as I said. You're suggesting that we use
instead ofmy $sub = @{ get_array_by_name($pkg, 'ISA') } ? get_sub_by_name($pkg, $name) : $pkg->can($name);
my $sub = get_sub_by_name($pkg, $name);
That's ludicrous.
|
|---|