[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Problem with record separator?



>I'm having a strange problem reading in a file.
>
>I read in the file, and the whole thing gets stuffed into $_ as one line.
>
>Ok, no problem, says I.  The record separator is just wrong since I'm on a
>Mac.  I check the file out with a hex editor, and find 0x0A is what's
>separating the lines.
>
>So, before opening the file, I do:
>
>$/="0x0A";
>
>And.....I get the whole file in one line again.

The syntax is

	$/="\x0A";

Lindsay



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch