Having said that, since system returns nothing except a return code c/w a signal number, > /dev/null is self-evidently superfluous.Not at all. There's a big difference between:
andsystem "ls -l /etc > /dev/null";
The former will not print anything. The latter will print the content of /etc.system "ls -l /etc"
In reply to Re^4: executing a shell script from perl
by JavaFan
in thread executing a shell script from perl
by usrlocal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |