Problems? Is your data what you think it is? | |
PerlMonks |
Re^5: running command line from Perlby NetWallah (Canon) |
on May 18, 2022 at 15:14 UTC ( [id://11143978]=note: print w/replies, xml ) | Need Help?? |
Documentation for system explicitly says:
This is not what you want to use to capture the output from a command; for that you should use merely backticks or qx//, as described in "`STRING`" in perlop. Return value of -1 indicates a failure to start the program or an error of the wait(2) system call (inspect $! for the reason). "These opinions are my own, though for a small fee they be yours too."
In Section
Seekers of Perl Wisdom
|
|