in reply to Re: Re: shell cd within perl script
in thread shell cd within perl script

Your question can be read two ways. Do you want the user's current directory to be changed after the program exits, or only during the execution of the program? Most of the answers address the latter interpretation, which is an odd requirement. Note that (as another monk has suggested) you can use chdir to change directories within the script, and it will apply to everything spawned by the script from then on, as well as to any operations the script itself does.

The PerlMonk tr/// Advocate