in reply to How does @INC get set?

It's hardcoded, but you can add to it by using the environment variable PERL5LIB or using use lib 'path' in your code, among other ways.

Replies are listed 'Best First'.
Re^2: How does @INC get set?
by Bone_Scavenger (Novice) on Nov 10, 2004 at 16:54 UTC
    Is it reasonable to expect the host to take care of those sorts of details? When they add a new perl module to their systems, it should be automatically reflected in everyone's web server (if that's their intention). They shouldn't be sending me the path, as if I knew what to do with it. I've got lots of computer experience (DBA mostly), but very little Perl and no web server experience. I can't imagine the frustration some non-techie would have.

    So, the key is to ask my host to add the Image::Majick path to the PERL5LIB variable?

    I guess I could change hosts, but that would be an inconvenience.

      Yes, it is reasonable to expect the host to take care of those sorts of details. In fact, it should be installed into somewhere in @INC by default. Are you sure it's installed? Maybe they installed ImageMagick and not PerlMagick (Image::Magick)?

      Update: Like fglock noticed, you're mispelling Image::Magick.