in reply to Capture output from backtick commands using sudo

Your example works for me, and I fail to see a difference between

$result=`sudo ls -la`; print "$result\n";

and

$result=`sudo ls -la`; print "$result\n";

. The first error message looks like you have placed the ls options before the ls command. Show us the real code that fails, copied and pasted into <code> tags.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)