[thelist] Question about perl mod's.

martin.p.burns at uk.pwcglobal.com martin.p.burns at uk.pwcglobal.com
Mon Jan 15 06:22:31 CST 2001

Memo from Martin P Burns of PricewaterhouseCoopers

-------------------- Start of message text --------------------

Alternatively, you can do as I do:

#this gets commented out if @INC is working OK without it
$REQUIRE_DIR = '/full/path/to/dir/with/subroutines/like/your/cgi-bin/';

#This is standard boilerplate in all my scripts:
# Push the $REQUIRE_DIR onto the @INC array for include file directories.
if ($REQUIRE_DIR ne '') {
    push(@INC, $REQUIRE_DIR);



Please respond to thelist at lists.evolt.org
To:   thelist at lists.evolt.org

Subject:  Re: [thelist] Question about perl mod's.

"Daniel J. Cody" wrote:
> To cut to the chase, what/who/where do I modify so that the path that
> @INC is looking in can include my custom path?

     At the beginning of your script, add a lib
     statement with the path like so:

use lib "/perl/foo/lib";
use GD;

--------------------- End of message text --------------------

The principal place of business of PricewaterhouseCoopers and its associate
partnerships is 1 Embankment Place, London WC2N 6NN where lists of the
partners' names are available for inspection. All partners in the associate
partnerships are authorised to conduct business as agents of, and all
contracts for services to clients are with, PricewaterhouseCoopers. The UK
firm of PricewaterhouseCoopers is authorised by the Institute of Chartered
Accountants in England and Wales to carry on investment business.
PricewaterhouseCoopers is a member of the world-wide
PricewaterhouseCoopers organisation.
The information transmitted is intended only for the person or entity to which
it is addressed and may contain confidential and/or privileged material.  Any
review, retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than the
intended recipient is prohibited.   If you received this in error, please
contact the sender and delete the material from any computer.

More information about the thelist mailing list