Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Running System Commans With ""by jkahn (Friar) |
on Sep 11, 2002 at 19:42 UTC ( [id://197058]=note: print w/replies, xml ) | Need Help?? |
As ferrency suggested in the crisis he describes in "Don't try this at home", composing all the bits of a system command into one line is dangerous, because one of those variables might contain a malicious command.
Instead, consider using the system LIST syntax, e.g.:
This will:
See perldoc -f system. update: fruiture pointed out that quotes were not needed in system LIST syntax.
In Section
Seekers of Perl Wisdom
|
|