this isn't really a Perl question, but my quick tests (though not exactly your syntax) return a non negative value, usually 2, when tar fails.
Did you try to run the shell command from the shell prompt (i.e. not from your Perl script)?
In reply to Re: exit value in tar command
by Laurent_R
in thread exit value in tar command
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |