in reply to Re: Re: Re: Cannot read in multiple lines
in thread Cannot read in multiple lines
Surely you mean $/ not $\. $/ is INPUT_RECORD_SEPARATOR while $\ is OUTPUT_RECORD_SEPARATOR according to perlvar
Other than that - it looks like excellent advice.
One other possibility is that the input file has been produced by a computer with different line characteristsics. E.g. A windows PC reading a file creted by a Unix program will also do precisely what you are experiencing. In which case setting $/ to be the very specific chr(13) woule be a good idea.
Dingus
|
|---|