in reply to chdir problem
In perlfaq8, look at the question "I {changed directory, modified my environment} in a perl script. How come the change disappeared when I exited the script? How do I get my changes to be visible?"