This also avoids the sticky situation when a method dies within the eval() and the script goes on. Also if you want to have private methods then you might want to look at Attribute::Protected.if(ref $to_do and UNIVERSAL::can($to_do, $actions)) { $to_do->$actions(); } else { defscreen(); }
_________
broquaint
In reply to Re: input switch
by broquaint
in thread input switch
by well
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |