I would like to create a perl script that reads lines from an ascii 
file, but that reads them regardless of whichever of the three variants 
(<CR>, <LF> or <CR><LF>) is actually in use as end-of-line, *without* 
knowing beforehand which is the case. The script should run on many 
systems (so installing a special version of Perl is out of the question).

Now perl has the input_line_separator which you can set to a value, 
sadly though, it is not a regular expression. Which means that I am 
looking for a trick or a method to handle text files line by line 
regardless of end-of-line character.

Can anybody help me out?

Thanks,

SH

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to