Yes, \r is legitimate. In MicroLIF you would terminate lines as natural to
the platform. The presumption was that if you transfer files among
platforms they would be treated as text files and line endings translated
as necessary. As always in the bibliographic data world, practices varied,
and a program that wanted to not be tripped had to handle any conceivable
eventuality.
_get_chunk() is coded to handle "any combination of \r and \n of any
length". Is it not functioning that way?
Mike O'Regan
Ed Summers
<[EMAIL PROTECTED]> To: perl4lib@perl.org
cc:
01/06/2005 09:48 Subject: Re: MARC::Record tests
AM
I'm thinking that the MicroLIF failure is due to line endings being
different on Mac versions < OS X.
There is code in MARC::File::MicroLIF::_get_chunk that handles DOS
(\r\n) and Unix (\n) line endings, but not Mac (\r).
Does anyone know if \r is a legit line ending in MicroLIF?
//Ed