joeblow has asked for the wisdom of the Perl Monks concerning the following question:
Firstly I'm not sure whether this is an correct approach to adopt, and secondly I'm wondering how I might structure the AUTOLOAD function to load these extra modules. Should I actually use "require", or do I need to use that funky goto method ? Obviously I'm looking for maximum flexibility, but also reasonable execution speed.if ($act eq 'open_file'){ stuff; } elsif ( $act eq 'open_stuff') { stuff; } elsif ( $act eq 'speak' ) { stuff; }
I hope someone can understand this raving mess of a question ;)
kindest,
>joe
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: OO/Application Framework question
by Ovid (Cardinal) on Apr 17, 2003 at 22:43 UTC | |
by joeblow (Novice) on Apr 17, 2003 at 23:07 UTC | |
|
Re: OO/Application Framework question
by samtregar (Abbot) on Apr 17, 2003 at 22:39 UTC | |
|
Re: OO/Application Framework question
by perrin (Chancellor) on Apr 17, 2003 at 22:44 UTC | |
|
Re: OO/Application Framework question
by dragonchild (Archbishop) on Apr 17, 2003 at 23:13 UTC | |
by joeblow (Novice) on Apr 17, 2003 at 23:37 UTC | |
by dragonchild (Archbishop) on Apr 17, 2003 at 23:53 UTC |