Re: How to change @INC

From: Jeff 'Japhy' Pinyan (japhy_at_perlmonk.org)
Date: 04/28/04


Date: Wed, 28 Apr 2004 10:51:55 -0400 (EDT)
To: William.Ampeh@frb.gov

On Apr 28, William.Ampeh@frb.gov said:

>This might work, I have not tried it, but it might.
>
>unshift (@INC, "/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi");
>use Fcntl;

It is usually pointless to modify @INC with push() or unshift(). You
should always use

  use lib "directory";

-- 
Jeff "japhy" Pinyan      japhy@pobox.com      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
CPAN ID: PINYAN    [Need a programmer?  If you like my work, let me know.]
<stu> what does y/// stand for?  <tender***> why, yansliterate of course.