On Friday 10 February 2006 15:18, Chas Owens wrote: > perl -ne 'push @save, $_; shift if @save > 25; if (/Error: building > module/) {print; @save =()}' logfile.log
Just curious. Do you actually print the 25 lines here? -- Bjørge Solli - Office:+47 55205847 cellph.:+47 91614343 Nansen Environmental and Remote Sensing Center - Bergen, Norway http://www.nersc.no Reception: +47 55205800 Dept.: Mohn-Sverdrup Center for Global Ocean Studies and Operational Oceanography -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>