Both use and require will do the job. The @INC array by default includes the current directory, '.', as its last entry, so you can split your program into Perl modules in the same directory. 'use' is more appropriate as it happens at compile time (whereas 'require' pulls the file in at run time). 'use' also calls the module's 'import' method, if it has one (although there's no need for one).
You might also consider 'do', which does a (run time) 'eval' on the contents of the file, and also searches the directories in @INC. HTH, Rob "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 ..? > > I have searched google and docs and even my books on perl, very untouched > subject ;-) > > thanks > > Craig > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]