Other monks will likely have better ideas, but here are my thoughts.
I hope this gives you a start. The bottom line is that I don't think eval is what you want here, and it's hard to give you more specific advice until you tell us how you will tell the difference between success and failure for the command (output vs exit value).
Update: added a link to perlfaq8
In reply to Re: Another eval $@ question
by bobf
in thread Another eval $@ question
by PugSA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |