in reply to Re: executing commands and getting output
in thread executing commands and getting output

Hi, I tried the $output = 'command' method but it doesn't seem to work. $output is empty and does not contain anything.
With the open command, could you give me a clue of what does it actually do ?
Thanks for your help
  • Comment on Re: Re: executing commands and getting output

Replies are listed 'Best First'.
Re: Re: Re: executing commands and getting output
by rnahi (Curate) on Sep 05, 2003 at 08:29 UTC
    $output = `command`; # ^ ^ # | |
    The quotes around command are backticks (ASCII 96, hex 60), not single quotes.

    As an alternative, you may use

    $output = qx(command);