in reply to unshift onto @INC

I have to agree with KM, either use the "use lib" pragma or edit your first line to read:
#! perl -W -I /temp/packdir/
Which of course only works on machines that use that line.

Replies are listed 'Best First'.
RE: RE: unshift onto @INC
by sean (Beadle) on Jun 22, 2000 at 03:42 UTC
    I think you mean to have a lower-case 'w' there. -W does something in perl 5.6.x I beleive, but not in perl 5.005.
      Correct, that is a 5.6 thing. I really wish people here would stick with -w in examples to ensure there is no confusion, since noone seems to comment 'This is for 5.6 and above only' when they do it.

      Cheers,
      KM

        My Apologies.
        Since upgrading to 5.6 I have switched from -w to -W and I forgot that -W was new to 5.6. I will try to remember to use -w in future posts.
        perhaps some of these folks are newbies who have only ever used 5.6 and don't know the difference?

        p.s. i wasn't referring to Adam in this case, simply addressing KM's assertion that a lot of people seem to make the 5.6 assumption.