title: Sending commands to the terminal from a script
body: <p>How do you send commands to the terminal in a perl script?</p>
  
  <p>For example, if I want to run the command <code>mkdir $directory</code> in the console, what do I type in the perl script?</p>