In article < >, Bill
Davis <> wrote:
> On Mon, 05 Jan 2004 05:37:02 -0800, Karel wrote:
>
> > Bill
> >
> > Your script calls /usr/bin/perl for interpreting the script at line 1.
> > But is this the location of the new perl 5.8.1 version you installed?
> >
> > To check where perl is located type the command :
> > which perl
> > in a Xterm. If this differs from the /usr/bin location use this
> > location in the fist line of your scripts.
> >
> > Other wise change @INC as follows:
> > no lib qw(:All .); # will clear @INC
> > use lib qw( your path's space separated) ; # will set @INC to your
> > path's
> >
>
> Thanks. I got the problem fixed, but like I said, I am trying to
> understand the process. I am still unsure where @INC resides, although I
> can now change it all day long. I am afraid that I am an unreconstructed
> empiricist - I like to be able to SEE the code that I am working on
>
> Thanks
> BD
The @INC variable is set by the perl interpreter before your program
executes. Use "perl -V" (capital V) to see what it normally is. Try
perldoc -q 'How do I add a directory to my include path'
for ways to add libraries to @INC. However, you don't want to be
maintaining your own special @INC array value. Make sure you always use
the same perl program for installing modules that you use for running
programs, and the installer should put the modules in one of the
directories already in your @INC.
FYI: this newsgroup is defunct. Try comp.lang.perl.misc in the future
for better response.