in reply to Re: how can i read only the last line of a filesin thread how can i read only the last line of a files
sub lastlines { return map { $_[-1] } @_; } # or, w/o using a sub: @last = ($a[-1], $b[-1], $c[-1]); [download]