in reply to Re: Re: Reading Log file from bottom up and take first 100 lines and send email...
in thread Reading Log file from bottom up and take first 100 lines and send email...

Well, the question was about taking the last 100 lines. You can use splice for that:
splice @x => 0, -100;
will keep the last 100 lines in @x. If you just want to keep the first 100, use
splice @x => 100;
Both will work without warnings if @x contains less than 100 elements.

Abigail