in reply to Re: simple Help
in thread simple Help

Thanks mate, qx{id ahmedf 2>&1} did the trick, thanks heaps . just curious what "2>&1" does in fact

Replies are listed 'Best First'.
Re^3: simple Help
by roboticus (Chancellor) on Nov 26, 2008 at 12:48 UTC
    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