What's the actual error message (if there is one)?
update: you're not setting $? anywhere?
In reply to Re^3: ActivePerl exit codes by Joost in thread ActivePerl exit codes by qadwjoh