http://www.perlmonks.org?node_id=140205


in reply to File::Grep

Good job. The only thing I can add is perhaps you should binmode FILE; as (certainly on Windoze) I have had problems with corrupt logfile lines, binary data and perl jumping out of while loops. Correct me if I'm wrong but doing binmode on OSes that do not require it doesn't affect (no-op?) file ops? So it would be precautionary - alternatively use another module to handle (no pun intended) the file.
   larryk                                          
perl -le "s,,reverse killer,e,y,rifle,lycra,,print"