in reply to Push local lib paths to @INC array

How do you know it's "not working"? Print the contents of @INC before and after the push, and you'll see that it is (or you have a broken Perl installation).

Note, however, that if you want to modify @INC before loading a module with use, you need to put the modifications in a BEGIN block -- and that includes setting the value of the variable.

Replies are listed 'Best First'.
Re^2: Push local lib paths to @INC array
by hacksics (Initiate) on Dec 25, 2008 at 18:40 UTC
    Ya, Thanks,
    It is working fine inside a BEGIN block (both variable assignment and push statement)