Tom Phoenix wrote:
On 3/26/07, Robert Hicks <[EMAIL PROTECTED]> wrote:

Jeff Pang wrote:
>> I accomplished this by adding the following line to the end of my
>> startup.pl file:  push(@INC, "Put path to directory here");
>>
>
> This is not mod_perl list.
> Since we discuss about common perl scripts not mod_perl,so your way seems not useful here.

Instead of being critical maybe you can have shown how to do it in a
script or module sense?

Instead of being critical, maybe you could have invoked the FAQ? From perlfaq8:

      How do I add a directory to my include path (@INC) at runtime?

      Here are the suggested ways of modifying your include path:

          the PERLLIB environment variable
          the PERL5LIB environment variable
          the perl -Idir command line flag
          the use lib pragma, as in
              use lib "$ENV{HOME}/myown_perllib";

The latter is particularly useful because it knows about machine depen-
      dent architectures.  The lib.pm pragmatic module was first included
      with the 5.002 release of Perl.

Cheers!

--Tom Phoenix
Stonehenge Perl Training

Ah, a much better answer than mine surely! Thanks!

Robert

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


Reply via email to