I am trying to determine if a text file is a dos or unix text file. I tried doing this by using the m// regular expression but I can't get it work. I basically need a piece of code that will "die" if a dos text file (\r\n) is loaded into my perl script. I am new to perl and working my way through it.
Any help would be appreciated.
Thanks, fritzvtb