To be on the safe side, probably using the BLOCK form of eval is the best way to goOr better yet, just use can e.g
sub foo { } my($class, $invoke) = qw/ main foo /; print "$class can $invoke" if UNIVERSAL::can($class, $invoke); __output__ yup
_________
broquaint
In reply to Re: Re: Joining Module reference with its method named as string.
by broquaint
in thread Joining Module reference with its method named as string.
by ceedee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |