in reply to How do I execute UNIX commands from a perl script

With the system() command, a good tip is to check the return code of the call to make sure everything worked the way it should have. Kinda like this:
$command = "mv /foo/bar ./new/bar"; (system($command) == 0) || warn "$command didn't work!";