Re: How to change @INC

2004-04-28 Thread Sumanth Sharma
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

Re: How to change @INC

2004-04-28 Thread Wiggins d Anconia
> 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

Re: How to change @INC

2004-04-28 Thread Jan Gruber
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) -

Re: How to change @INC

2004-04-28 Thread Jeff 'japhy' Pinyan
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

Re: How to change @INC

2004-04-28 Thread William.Ampeh
<[EMAIL PROTECTED]> .it> cc: Subject: How to change @INC

Re: How to change @INC

2004-04-28 Thread Wiggins d Anconia
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

Re: How to change @INC

2004-04-28 Thread Remo Sanges
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

How to change @INC

2004-04-28 Thread Mauro
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-