I tried for sure this command. If the directory is missing, I get exactly the same error. After the corresponding mkdir everything seems fine.
The command does not run in your case, since perl launches sh, which first tries to configure your redirects and then runs your command related to prepared redirects. - In your case, sh cannot prepare redirects and therefore cannot run a real command.
As you say, “the output path already exists”, but perl says that “Directory nonexistent” both of you seem to be talking about different paths.
Try mkdir or ls output path from inside perl. Then you can see what happens.
source share