in reply to Re: Howto set path for local package in a Perl code
in thread Howto set path for local package in a Perl code
what I get is this...use strict; use warnings; use lib "/home/neversaint/MyPerl/src"; use MYPACKAGE;
In MYPACKAGE.pm what I have is this:~/MyPerl/src $ perl -c src/mycode.pl # gives Can't locate MYPACKAGE.pm in @INC (@INC contains: home/neversaint/MyPe +rl/src /home/neversaint/lib/perl5/site_perl/5.8.5/i386-linux-thread-m +ulti/5.8.5/i386-linux-thread-multi
Although I have no problem at all running mycode.pl in src/ directory : ~/MyPerl $ perl mycode.pl someparam# plain header nothing here... # straight go to the functions.... sub some_func { # do sth; return $soth } 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Howto set path for local package in a Perl code
by davorg (Chancellor) on Jun 01, 2006 at 10:39 UTC | |
|
Re^3: Howto set path for local package in a Perl code
by krisahoch (Deacon) on Jun 01, 2006 at 17:56 UTC |