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: Thu, 20 Mar 2008 23:50:46 +0900
- From: "Marty Pauley" <marty.pauley@example.com>
- Subject: Re: [tlug] Non-standard Perl Module Locations
- References: <20080312033943.GF2019@lucky.cynic.net> <47D7FED6.4090105@sonic.net> <20080312151121.U1693@plexi.pun-pun.prv> <47D7721F.7080107@sonic.net> <82c89d700803112238p2f67a262red145f8c1184b881@mail.gmail.com> <20080313065737.GC1789@lucky.cynic.net>
On 13/03/2008, Curt Sampson <cjs@example.com> wrote: > > BEGIN { > require File::Basename; > require(File::Basename::dirname($0) . "/../qam.pl"); > } > > (I'd like to make this smaller, if anybody has any good ideas.) To be shorter and more reliable try: use FindBin qw($Bin); use lib "$Bin/../lib"; You don't need the BEGIN block then. See perldoc FindBin for more info. It's part of the core. -- Marty
- References:
- [tlug] Non-standard Perl Module Locations
- From: Curt Sampson
- Re: [tlug] Non-standard Perl Module Locations
- From: steven smith
- Re: [tlug] Non-standard Perl Module Locations
- From: Tod McQuillin
- Re: [tlug] Non-standard Perl Module Locations
- From: steven smith
- Re: [tlug] Non-standard Perl Module Locations
- From: David Shanahan
- Re: [tlug] Non-standard Perl Module Locations
- From: Curt Sampson
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] [OT]Facebook app
- Next by Date: Re: [tlug] Gnome vs. KDE? BSD vs. Linux?
- 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