in reply to
shell cd within perl script
If you just want to change your "current working directory" you can use the builtin
chdir
, but I have no idea how to change your shells working directory.
Comment on
Re: shell cd within perl script
Replies are listed 'Best First'.
Re: Re: shell cd within perl script
by
ishnid
(Monk)
on Apr 19, 2004 at 13:38 UTC
chdir will only have effect within the script and won't affect the shell's pwd at all. Simple example:
perl -e "chdir('/home/username')"
[download]
[reply]
[d/l]
In Section
Seekers of Perl Wisdom