Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Non-standard Perl Module Locations
- Date: Tue, 11 Mar 2008 23:03:11 -0700
- From: steven smith <sjs@example.com>
- Subject: Re: [tlug] Non-standard Perl Module Locations
- References: <20080312033943.GF2019@lucky.cynic.net> <82c89d700803112238p2f67a262red145f8c1184b881@mail.gmail.com>
- User-agent: Thunderbird 1.5.0.14ubu (X11/20080306)
David Shanahan wrote:Sometimes you will have to do your include path manipulation inside a BEGIN block so it will get executed before you have loaded any modules too.
Almost identical with perl, just manipulate the @INC array.
unshift @INC, $d->perllib_sitesearch(); unshift @INC, $d->perllib_site();
See what perl uses by default for library paths perl -e "print join(\"\\n\",@INC);"
Similarly the %ENV hash is tied to the process environment. You could use the Env module to make manipulating path strings easier too.
perldoc Env
Steve S.
- Follow-Ups:
- Re: [tlug] Non-standard Perl Module Locations
- From: Tod McQuillin
- References:
- [tlug] Non-standard Perl Module Locations
- From: Curt Sampson
- Re: [tlug] Non-standard Perl Module Locations
- From: David Shanahan
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Non-standard Perl Module Locations
- Next by Date: Re: [tlug] Non-standard Perl Module Locations
- Previous by thread: Re: [tlug] Non-standard Perl Module Locations
- Next by thread: Re: [tlug] Non-standard Perl Module Locations
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links