Try:
my $MSG = `tail -n 10 $ERRLOG`;
but really you ought to consider using something like File::Tail to do the job instead.
In reply to Re: system call: Unix system call result into a variable
by GrandFather
in thread system call: Unix system call result into a variable
by PerlMe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |