in reply to chdir problem

Please, use <code> and </code> around your code and output, otherwise no one would be able to help you. Also note that if you change a directory in your Perl script, once the script ends, your shell will be back in the directory you called the script from.