in reply to Execute cd command from perl script
Check the FAQ for 'environment'.
(Or, if you aren't trying to affect your parent process' envrionment, look at chdir.)