I have written a perl script to navigate a UNIX file system. When the script exits you are left in the directory you started the script in. I would like to have the script leave me in the directory I navigate to when exiting. Any suggestions?

In UNIX, each process is forked from their parent and inherits their environment. After that, they are independent. Any changes in either does not effect the other. To get a child process to run in the parent, you must . or source it. See `man bash` and search for /source/