On Sun, 2007-04-08 at 12:15 +0200, Raphael wrote:
> Hi Users,
> 
> I want to "source" another file (also a perl-script) into my one at the
> beginning. There are definitions which are to be loaded before executing
> the rest of the other script. In a shell-script, I can do it with ".
> filename", and in perl?
> 
> Thanks for any ideas and help.

Modules is what you are after.

create your subroutines or definitions that you want to use in a file
called xyz.pm  (xyz should be something meaningful)

use lib '/where/my/module/is/';
use xyz



-- 
Ken Foskey
FOSS developer


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to