vladb has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for help in advance ;).use strict; my $path = shift || $ENV{HOME}; print "will cd to '$path'\n"; # these both won't work (obviously ;-) #$ENV{PWD}=$path; #chdir($path); # changes this process' directory.
| "There is no system but GNU, and Linux is one of its kernels." -- Confession of Faith |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Changing shell path inside perl script.
by Juerd (Abbot) on Jan 09, 2002 at 07:14 UTC | |
|
Re: Changing shell path inside perl script.
by metadoktor (Hermit) on Jan 09, 2002 at 18:14 UTC |