Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: "Packaging" Perl modules

by crouchingpenguin (Priest)
on Jan 23, 2003 at 15:13 UTC ( [id://229328]=note: print w/replies, xml ) Need Help??


in reply to "Packaging" Perl modules

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."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://229328]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-24 03:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found