in reply to Getting a return code from a perl script called via system()

Why not use backticks instead of the system() call? Then you can get all the output the script generates:
my $out = `script.pl --arg`
Better yet, break your verification code into a module, and use it directly from the CGI script.