If you execute a command in backticks or qx{}, perl returns the resulting STDOUT as a list, e.g.
Code:
my @files = qx{ls -al};
If you invoke a command using the system call, you get the return code, not the output.
Does this help at all?
Steve
[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object:erlDesignPatterns)[/small]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.