"Craig Williams" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I don't want to keep all my code for a script in one file.
>
> Do I have to use modules to break apart the code ? Is there anyway to just
> include a .pl file ? Modules used this way are a
> pain because they must be put into /site/lib to work ..?

you can do a use lib '/path/module/resides/in/'; to munge @INC at runtime.

A module is going to be the right way to package code. It takes care of alot
of things you might miss doing it some other way. Get the perl cookbook from
your bookstore or library. See chapters 10-13 for a very good example based
discussion on the subject.

> I have searched google and docs and even my books on perl, very untouched
> subject ;-)
>

The subject has been covered quite thoroughly. Perhaps you aren't looking in
the right place? =0)

Todd W.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to