We have this log monitoring script that mostly works.  Sometimes.  Once you get it configured and throw some holy penguin pee on it.  So a few months ago I took it upon myself to rework it into something more robust and, well, better.<br>
<br>The script itself is one of the worst programs I have ever seen (sadly, not *the* worst).  The person who wrote it only thought they knew something about Perl but really didn&#39;t.  So I spent some off-time working on this off and on (mostly off) until recently I told people that it&#39;s working better now -- bigger, faster, and stronger.<br>
<br>Regardless of the fact that all our processes run on Linux, this one particular application decided that it wants to save it&#39;s log files in DOS format.  Perl is thinking that, hey, it&#39;s in a Unix-like environment and doesn&#39;t quite read that file right.<br>
<br>So . . . it there a way I could get Perl to detect a file that uses CRLF as it&#39;s line terminator?  That way, I could use binmode on that file, and use ASCII on the rest.  Or does someone have a better suggestion?<br clear="all">
<br>-- <br>Mike Hostetler<br><a href="http://mike.hostetlerhome.com/">http://mike.hostetlerhome.com/</a><br><br><br>