in reply to Re^2: system() command
in thread system() command

I think we agree that checking the return value of system() call is important - same thing like for a file open or whatever. A more important point here could be that using a system() call for the change directory is the WRONG thing to do.

Update: Clarification, because that system call does not change the directory of the Perl script, only the directory of the shell script that the Perl script spawned.