go ahead... be a heretic | |
PerlMonks |
Perl ignores CarriageReturn during fileparsing. Why?by hoppfrosch (Scribe) |
on Jun 13, 2013 at 12:00 UTC ( [id://1038727]=perlquestion: print w/replies, xml ) | Need Help?? |
hoppfrosch has asked for the wisdom of the Perl Monks concerning the following question:
Hi there,
I've got a quite obscure problem concerning linewise parsing of files within my huge project. Isolated problem:
Runnig this example standalone, everything works fine:
I do have almost the same code within a huge project. Running this code on the same file does not show the same behaviour within my project:
What's going wrong? It used to work formerly - I made a couple of changes "far away" fom this code sequence within my project. What may perl cause to ignore the CarriageReturn during parsing with while <F>? How can I "force" perl to use carriageReturn as line separator? ???Puzzled???
Back to
Seekers of Perl Wisdom
|
|