Just another Perl shrine | |
PerlMonks |
Re: Running a backticks command in a CGI scriptby NetWallah (Canon) |
on Apr 14, 2013 at 05:18 UTC ( [id://1028597]=note: print w/replies, xml ) | Need Help?? |
Try capturing STDERR in addtion to the STDOUT output:
You should also check the value of "$?". From the docs: $? may be set to non-0 value if the external program fails. The upper eight bits reflect specific error conditions encountered by the program (the program's "exit()" value).
"I'm fairly sure if they took porn off the Internet, there'd only be one website left, and it'd be called 'Bring Back the Porn!'"
In Section
Seekers of Perl Wisdom
|
|