in reply to using newer modules

The new dir has to be in your @INC array before the directory of the old CGI.pm

use #!/usr/bin/perl -I/home/user/mydir

or use lib '/home/user/mydir';

before your use CGI and that "should" do it. Weird if it isn't... do you do the use lib after the use CGI?

Update the good doctor is also very right, if you don't have the path right perl will just ignore it.
                - Ant

Replies are listed 'Best First'.
Re: Re: using newer modules
by chorg (Monk) on Apr 23, 2001 at 21:25 UTC
    Ghaaa! A Grievous Error!! I was using the debugger to check what was happening, but did not use the -I switch that was in the shebang line of my program...

    *sigh* Thanks for the help monks - all is well...
    _______________________________________________
    "Intelligence is a tool used achieve goals, however goals are not always chosen wisely..."

      Heehee... find me a perl programmer who hasn't made a silly mistake or 20, and I'll show you the biggest liar in the world.
                      - Ant