in reply to Erroneous Whitespace

local $_ = qx{$command 2>&1}; chomp; return wantarray ? ($_, $? >> 8) : $_;
If you really wanted to return the text in $_, remove local.

Replies are listed 'Best First'.
Re^2: Erroneous Whitespace
by lokista (Initiate) on May 29, 2014 at 20:07 UTC
    Thank you for the response. After seeing your suggestion and a little tweaking, I am getting the expected results.