Any good (1st perl monk post...:-)$num_to_keep = 10; while( <FILE> ) { push @saved_lines, $_; ...do your stuff... shift @saved_lines if @saved_lines > $num_to_keep; }
In reply to Re: read lines... wait
by jbert
in thread read lines... wait, back up?
by Konda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |