hi all,
how can i add to the linux search $PATH from within perl?
TIA
eddiec :-)
|
|
0
|
|
|
|
Reply
|
chalk (34)
|
12/20/2005 4:54:15 AM |
|
"pc" <chalk@netspace.net.au> wrote in news:1135054455.595113.183890
@g14g2000cwa.googlegroups.com:
> hi all,
>
> how can i add to the linux search $PATH from within perl?
>
perldoc -q environment
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
|
|
0
|
|
|
|
Reply
|
A
|
12/20/2005 4:58:17 AM
|
|
pc wrote:
> how can i add to the linux search $PATH from within perl?
Do you want to modify the path so that other programs launched from
within the same perl file will see that path? Simply modify Perl's
$ENV{PATH} variable.
Do you want to modify the path so that once your perl script ends, the
path you set in the perl script remains available? You can't. See:
perldoc -q environment
Paul Lalli
|
|
0
|
|
|
|
Reply
|
Paul
|
12/20/2005 12:35:13 PM
|
|