There's more than one way to do things | |
PerlMonks |
Re^7: Function name in a variable, can't recall the concept (introspection with ->can )by LanX (Saint) |
on Apr 20, 2019 at 18:21 UTC ( [id://1232835]=note: print w/replies, xml ) | Need Help?? |
> You're suggesting that we use > my $sub = @{ get_array_by_name($pkg, 'ISA') } ? get_sub_by_name($pkg, $name) : $pkg->can($name); No, I don't!
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|