Ask a Question related to PERL Modules, Design and Development.
-
Tookelso@yahoo.com #1
use lib relative pathnames - redux
Hello,
I'm trying to use libraries that are relative to the perl module or
script that's being called.
The below code will not work
use lib '../lib'
if I execute the script from a different drive letter, or from a
different directory in Windows.
I found this thread from 8 years ago: [url]http://tinyurl.com/drsoh[/url]
Some people were going to use the following code:
use lib File::Basename::dirname(__FILE__) . "../lib";
Is there a more up to date solution?
Thanks,
--Nate
Tookelso@yahoo.com Guest
-
Guard page issue - redux
Contribute has the client's site open, with the index.html page displayed, and tells me that it cannot find a 'guard page', giving examples of... -
compact flash redux
There was quite a long thread here back in about May about the relative merits of a regular compact flash 256 card vs the "ultra" or high speed ones.... -
relative pathnames for chunks
Anyone know if it is OK to use a relative path to chunks. I have links to my raw devices in $INFORMIXDIR/links. I would like to use a path... -
Disappearing bounding box Redux
On June 3, a fellow user posted a tale of disappearing bounding box. The solution was simple: toggle the show/hide options on the menu.... -
Site relative or document relative links prob.
Hi everyone, I have currently developed a new site within a sub directory of a site. I have used document relative links to test the site online... -
John Bokma #2
Re: use lib relative pathnames - redux
[email]Tookelso@yahoo.com[/email] wrote:
Don't know about up to date, but I used this one in the past:> Hello,
>
> I'm trying to use libraries that are relative to the perl module or
> script that's being called.
>
> The below code will not work
> use lib '../lib'
> if I execute the script from a different drive letter, or from a
> different directory in Windows.
>
> I found this thread from 8 years ago: [url]http://tinyurl.com/drsoh[/url]
>
> Some people were going to use the following code:
>
> use lib File::Basename::dirname(__FILE__) . "../lib";
>
> Is there a more up to date solution?
[url]http://search.cpan.org/~nwclark/perl-5.8.7/lib/FindBin.pm[/url]
--
John Small Perl scripts: [url]http://johnbokma.com/perl/[/url]
Perl programmer available: [url]http://castleamber.com/[/url]
I ploink googlegroups.com :-)
John Bokma Guest



Reply With Quote

