[Israel.pm] Corrupted @INC variable
Ishay Inbar
ishay at checkpoint.com
Sun Feb 15 05:03:31 PST 2004
Hi,
I encounter a similar problem when executing the wrong Perl executable.
AFAIK the basic @INC is defined in the compilation of Perl, and in case
you use one version, but the "real" installed version is another - you
might get such problems.
I guess reinstalling Perl will be the fastest way to solve it, in case
you can.
Regards,
shushu
-----Original Message-----
From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] On
Behalf Of Ms Vera Sheinman
Sent: Sunday, February 15, 2004 2:49 PM
To: Perl in Israel
Subject: Re: [Israel.pm] Corrupted @INC variable
Thanks a lot for a prompt answer.
When I do shift to the existing @inc and unshift of
the full path through begin as you advised - it
recognizes the path. However, still cannot do perl -V
not from c:\Perl\bin (the "relative" path in @INC is
from there) - it complains on unsuitable @INC. Here's
what perl -V gives me when it's run from bin:
@INC:
C:/Perl/lib
C:/Perl/site/lib
.
Vera
--- Yuval Yaari <yuval at windax.com> wrote:
> Tried:
> BEGIN { unshift(@INC, "/full/path"); }
> ?
>
> Could you type: `perl -V` and give us the @INC
> section (should be in the
> end of the output IIRC)?
>
> --Yuval
>
>
> Ms Vera Sheinman wrote:
>
> >Hi all,
> >
> >I have got some strange @inc variable corruption -
> it
> >has turned to relative path. This problem prevents
> me
> >from even using basic "use strcit", because
> naturally
> >the location of strict.pm cannot be found. Pushing
> >correct values into the @INC variable from my
> script
> >doesn't help. Does anyone know how to change @INC
> >value permanently, outside the script, or in some
> >other way?
> >
> >Thanks,
> >Vera
> >
>
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://www.perl.org.il/mailman/listinfo/perl
>
> YAPC::Israel::2004
> http://www.perl.org.il/YAPC/2004/
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
_______________________________________________
Perl mailing list
Perl at perl.org.il
http://www.perl.org.il/mailman/listinfo/perl
YAPC::Israel::2004
http://www.perl.org.il/YAPC/2004/
More information about the Perl
mailing list