Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The problem is that my script.pl use relative "use lib" statements. My question is what is the best way for a script to know what its path is relative to the calling script. Any help will be greatly appreciated.use strict; use Test::Harness; my @scripts = qw( ../../somedir/anotherdir/script.pl ); runtests(@scripts);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Finding relative path to called script
by mickeyn (Priest) on Jul 26, 2006 at 14:46 UTC | |
|
Re: Finding relative path to called script
by bsdz (Friar) on Jul 26, 2006 at 14:35 UTC | |
|
Re: Finding relative path to called script
by duc (Beadle) on Jul 26, 2006 at 15:19 UTC | |
|
Re: Finding relative path to called script
by eff_i_g (Curate) on Jul 26, 2006 at 17:23 UTC | |
|
Re: Finding relative path to called script
by Anonymous Monk on Jul 26, 2006 at 16:40 UTC |