It really depends on what you want to do with the command. If you just want to execute some command and don't need to get any output, then you can use the system command. The syntax is like:
system("command here"
If you need output then you can do something like this using backticks.
$output=`command here`;
Now $output has the results of the command.
Also check out the "exec" function in the perl documentation.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.