|Just another Perl shrine|
Re: System commands using CGIby ColonelPanic (Friar)
|on Dec 03, 2012 at 09:07 UTC||Need Help??|
Obligatory standard response:
This will encourage you to write better code, in particular declaring all of your variables as lexical.
It is much better to use the CGI module to handle your output, rather than rolling your own. For a discussion of this, see one of the great ancient works of the monastery.
This enables you to see your script's fatal errors in the browser. Essential for debugging.
Finally, checking the error given by system would probably be helpful:
See the documentation for system for more information on checking the error codes.
When's the last time you used duct tape on a duct? --Larry Wall