@x = @x[($#x-100>0?$#x-100:0)..$#x];I find @x = @x[0..99] if @x > 100; to be more readable. YMMV.
In reply to Re: Re: Reading Log file from bottom up and take first 100 lines and send email...
by dws
in thread Reading Log file from bottom up and take first 100 lines and send email...
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |