Think about Loose Coupling | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I use plugin code in a few places and I got around the variable handling by passing certain variables thru the constructor, as a hash reference, array reference or similar. You can also just have an inherited method that sticks the vars in a complex data structure.
Greetz Beatnik ...Perl is like sex: if you're doing it wrong, there's no fun to it. In reply to Re: Coding perl a plugin system?
by Beatnik
|
|