Adding a .pl to @INC
am 05.07.2006 09:57:55 von ac
Hi
I am a newcomer to Perl, am trying to run a Perl file which calls a function from
another Perl file. But while running it is complaining that it cannot find that file in @INC.
Can somebody help me as to how I should other file to @INC.
Regards
AC.
Re: Adding a .pl to @INC
am 05.07.2006 10:37:37 von Gunnar Hjalmarsson
AC wrote:
> I am a newcomer to Perl, am trying to run a Perl file which calls a
> function from
> another Perl file. But while running it is complaining that it cannot
> find that file in @INC.
> Can somebody help me as to how I should other file to @INC.
That's a FAQ.
perldoc -q @INC
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
Re: Adding a .pl to @INC
am 05.07.2006 23:04:14 von Bart Lateur
AC wrote:
>I am a newcomer to Perl, am trying to run a Perl file which calls a function from
>another Perl file. But while running it is complaining that it cannot find that file in @INC.
>Can somebody help me as to how I should other file to @INC.
use lib '/path/to/where/that/other/file/is';
See
http://perldoc.perl.org/lib.html
--
Bart.