On Jul 26, Tony Frasketi said:

   $ENV{HOME} = 'home/tony/cgi-bin'; # My cgi-bin directory

Are you sure there shouldn't be a / at the beginning of that?

   use lib "$ENV{HOME}/pm";          # Add my personal perl module directory

The problem is that 'use lib' happens at compile-time, but your assignment to $ENV{HOME} doesn't happen until run-time. A simple fix in your case is:

  BEGIN {
    $ENV{HOME} = "/home/tony/cgi-bin";
  }
  use lib "$ENV{HOME}/pm";

The BEGIN { } block forces its contents to be executed at compile-time.

--
Jeff "japhy" Pinyan         %  How can we ever be the sold short or
RPI Acacia Brother #734     %  the cheated, we who for every service
http://japhy.perlmonk.org/  %  have long ago been overpaid?
http://www.perlmonks.org/   %    -- Meister Eckhart

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to