in reply to Re: Setting environment!!
in thread Setting environment!!

Pretty close. The lib pragma will muck with @INC at compile time, but pushing like that isn't until runtime. For these two to be basically functionally identical, you would want to wrap the push in a BEGIN block:

<CODE> BEGIN { push @INC, '/your/path'; } <CODE>

Cheers,
KM