in reply to Re: 'use lib' versus '-I'
in thread 'use lib' versus '-I'

Yes i know. So i'm running it on the command line and it does not work using "use lib".

Replies are listed 'Best First'.
Re^3: 'use lib' versus '-I'
by hardburn (Abbot) on Nov 30, 2004 at 15:50 UTC

    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.