167

Executing External Commands
Back-quotes

  • The back-quote ` ` delimeters execute a command line

  • The return value is the STDOUT captured from the output of the commands

      $date = `date`;

      chop( @who = `who` );

      $date2 = `date 2>&1`; # sh redirect