They are all correct in saying either
unshift @INC, "your path"; or push @INC, "your path";
but better achieve this in
BEGIN{} module, so that you are assured that @INC is changed before the
use <>; statement is evaluated.
Sumanth Sharma
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
> Hi!
>
> > > how can I fix this error telling perl to search in corretc path (that
> > > is /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/Fcntl.pm)?
>
> You can push || unshift(@INC, 'some directory').
>
As Jeff mentioned this is not sufficient. The reason is because modules
are loaded at comp
Hi!
> > how can I fix this error telling perl to search in corretc path (that
> > is /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/Fcntl.pm)?
You can push || unshift(@INC, 'some directory').
Best regards,
Jan
--
cat /dev/world | perl -e "while (<>) {(/(^.*?\?) 42\!/) && (print $1)}"
errors->(c)
-
On Apr 28, [EMAIL PROTECTED] said:
>This might work, I have not tried it, but it might.
>
>unshift (@INC, "/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi");
>use Fcntl;
It is usually pointless to modify @INC with push() or unshift(). You
should always use
use lib "directory";
--
Jeff "japhy" P
<[EMAIL PROTECTED]>
.it> cc:
Subject: How to change @INC
Please bottom post...
> you can solve in your script:
>
> #!/usr/bin/perl
> use lib '/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi';
> use Fcntl;
> .
>
> or setting the environmental variable PERL5LIB.
>
> Remo
Uh, better be very very careful with this. Th
you can solve in your script:
#!/usr/bin/perl
use lib '/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi';
use Fcntl;
.
or setting the environmental variable PERL5LIB.
Remo
On Apr 28, 2004, at 2:19 PM, Mauro wrote:
Hi all, I'm tring to load a module with:
use
Hi all, I'm tring to load a module with:
use Fcntl;
but I get an error like:
Can't locate Fcntl.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1
/opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5.005/PA-RISC1.1
/opt/perl5/lib/site_perl/5.005 .) at ./sparse_file line 3.
BEGIN failed-