If you die $! instead of using a custom message, you'll find out what the OS thinks is wrong.
After Compline,Zaxo
In reply to Re: chdir: failure by Zaxo in thread chdir: failure by PerlMe