in reply to simple Help

There are two options

Replies are listed 'Best First'.
Re^2: simple Help
by farhan (Novice) on Nov 26, 2008 at 09:09 UTC
    Thanks mate, qx{id ahmedf 2>&1} did the trick, thanks heaps . just curious what "2>&1" does in fact
      farhan:

      It tells the command shell to send all output from filehandle 2 (typically STDERR) to filehandle 1 (typically STDOUT). For further details, see perldoc perlop:

      qx/STRING/ `STRING` A string which is (possibly) interpolated and then executed as a system command with "/bin/sh" or its equivalent. Shell wild- cards, pipes, and redirections will be honored. The collected standard output of the command is returned; standard error is unaffected. In scalar... <<<<< SNIP >>>>> ...To capture a command's STDERR and STDOUT together: $output = `cmd 2>&1`;
      ...roboticus