Re: Detecting NT eol (^M) characters

2001-06-21 Thread Chas Owens
\n in Perl is magical. It changes its value based on the OS. On Unix boxen it is equal to LF, on Macs it is equal to CR, and on DOS based machines it is equal to CRLF. If you are looking for the CR and only the CR your best bet is to use \015. On 21 Jun 2001 07:17:04 -0400, Jeanne Riley

Re: Detecting NT eol (^M) characters

2001-06-21 Thread Brett W. McCoy
On Thu, 21 Jun 2001, Jeanne Riley wrote: I am attempting to write my 1st Perl script. I have an install of ClearCase 4.1 which has Perl embedded in it. I need to write a Perl script (trigger) that if anyone attempts to check in a file with NT eol character the check in will be blocked.