We don't bite newbies here... much | |
PerlMonks |
Re^5: Modification of @ISA at run timeby nothingmuch (Priest) |
on Sep 01, 2005 at 15:36 UTC ( [id://488403]=note: print w/replies, xml ) | Need Help?? |
This example is not well suited for a delegator model, but for a factory one, where each class presents it's routines to the routine displayer code (polymorphically, too - the code that has these archive plugins shouldn't care, it should only handle the interactivity).
The open archive command takes a CLI, and dispatches to a factory constructor, that chooses the right class, and then the instance of this class is presented to the user with the enumerated options, extracted metadata, and so forth.
-nuffin zz zZ Z Z #!perl
In Section
Seekers of Perl Wisdom
|
|