in reply to Re: Adding to @INC
in thread Adding to @INC

 use lib dirname($0) ;

whats wrong with use lib '.'; ?

I guess the first adds to @INC the dir the script lives in and the second adds to @INC the dir the script was called from, i.e. user's current dir.

Replies are listed 'Best First'.
Re^3: Adding to @INC
by LanX (Saint) on May 21, 2019 at 21:21 UTC
    yeah but that's what he wanted, right?

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      directory from which the application has been started
      to add the application directory.

      possibly... Though my comment was not really directed to you but to the author to clarify what is really needed.