Possible Duplicate:
How can I store Perl's system function output to a variable?
I have tried to run a shell command in my Perl script. An example is like below:
system ("ls -al");
The result is well printed on Unix.
Is there a way to return the result to $string
in my Perl script instead of returning the result on Unix?
I do not want the result to be printed on my Unix.