See my thread "RegEx to remove \x0D\x0A" on 'perl-win32-users' list.
Perl strips out the \x0D character unless you use binmode(FILE). -----Original Message----- From: Miguel Angelo [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 6:19 AM To: [EMAIL PROTECTED] Subject: How to tell the line termination chars ? Hi All, thankx for reading I'm doing a project under Perl 5.6 + Windows + Oracle that revolves around reading, testing and upload files into a Oracle Database. Unfortuatly all is based on Windows enviroment but, that's life ;) My question is simple : HOW CAN I KNOW IF THE FILE IS IN UNIX LINE TERMINATION OR MS-DOS LINE TERMINATION ?? If i read the file ( while <some_handle> ) i always get a single ( \n ) line termination caracter on the $_ even when i know absoluty that the file is in Windows or Unix format. Any help would be great Stay Happy Miguel Angelo _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
