The system() function can be used to perform system commands. $! is set if any error occurs.
The backtick operator can be used to perform a system command and return the output. The qx() quoting function/operator works similarly to backticks.
The above methods may not result in platform independent code.
Data input by users or from elsewhere on the system can cause security problems. Perl's -T flag can be used to check for such "tainted" data
Tainted data can only be untainted by referencing a substring from a pattern match.