Hi out there at the screens,

Currently I'm banging my head against a
brick wall...

On a windows box - using ASPN perl 5.8
for win32 - I want to read a mac file,
line by line...
Mac files end a line with "\x0D"...
Hence win32-perl doesn't recognize them
correctly by default....

I searched the web, read the docs on
binmode, $/ and the newline-section
of "perlport"...  But I don't find
an elegant/working solution.

- changing $/ was my first idea.
   But this doesn't have the desired
   effect:
   $/=\015;
   ...
   $line = <MACFILE>;

   doesn't give me the whole line but
   a fixed numbers of characters...

- I don't want to slurp the file
   and then do $data =~ s/\015?\012/\n/g;

- I could read the file in binary mode
   and parse for \x0D myself but that
   looks like reinventing the wheel to
   me.

So which knob do I have to turn to read
those mac-lines on a windows box ?

Thanx for your help in advance.

Greetings from the polish border

Oliver

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to