Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: "Packaging" Perl modulesby crouchingpenguin (Priest) |
on Jan 23, 2003 at 15:13 UTC ( [id://229328]=note: print w/replies, xml ) | Need Help?? |
I think what you want is: use lib "/perl/lib/MyPackage"; before all of your 'use' lines so that '/per/lib/MyPackage' is in @INC. Then you simply 'use' the package name as defined with the 'package $name;' line within each module/package. "Never be afraid to try something new. Remember, amateurs built the ark. Professionals built the Titanic."
In Section
Seekers of Perl Wisdom
|
|