This may be more generic, if you want to do some more complicated processing of each line of output from the system call?open($cmd, "tail -n 10 $ERRLOG |"); while(<$cmd>) { # do something here }
In reply to Re: system call: Unix system call result into a variable
by mjscott2702
in thread system call: Unix system call result into a variable
by PerlMe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |