in reply to 'use lib' versus '-I'

Under mod_perl, the shebang line is mostly irrelevent. It needs to be there for CGIs to give the path to the interpreter, but in mod_perl, the interpreter is built into the web server itself. IIRC, it'll parse some command line options (like -T), but not all.

"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

Replies are listed 'Best First'.
Re^2: 'use lib' versus '-I'
by Jaap (Curate) on Nov 30, 2004 at 15:40 UTC
    Yes i know. So i'm running it on the command line and it does not work using "use lib".

      It works for me:

      $ ls Test.pm $ cat Test.pm package Test; sub foo { @_ } 1; $ perl -le 'use lib "."; use Test; print Test::foo( "Hello, world!" )' Hello, world! $

      What did you actually put on the command line?

      "There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.