in reply to Determine whether file is dos or unix format

What wat the specific m// that you used? Did you use the /s switch? You may need to specify the hex values for the characters as m/\x0d\x0a/s.


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: Determine whether file is dos or unix format
by ikegami (Patriarch) on Nov 28, 2005 at 21:33 UTC
    The "s" switch only affects what "." matches. It is therefore useless (albeit harmless) in your solution.