![]() |
|
No such thing as a small change | |
PerlMonks |
system versus qx securityby mce (Curate) |
on Oct 03, 2003 at 09:46 UTC ( #296183=perlquestion: print w/replies, xml ) | Need Help?? |
mce has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
I might be totally wrong about this issue, but here if goes.
This generates this output ls: file; ls: No such file or directory ls: file: No such file or directory file file file file When using the system command, if 'qoutes' the arguments, which is more safe in CGI. But how do I do this in qx or <backtick>? I can use quotemeta, but isn't there a better solution? What I want to achieve, is to capture the output of a command, which system will not allow.
Any suggestions?
Back to
Seekers of Perl Wisdom
|
|