in reply to input switch
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: input switch
by Anonymous Monk on Sep 10, 2002 at 12:59 UTC |