in reply to Re^2: Very weird things when printing (may be an encoding issue?)
in thread Very weird things when printing (may be an encoding issue?)

In that case, use the CR to separate the records and the LF to split into lines;
#!perl use strict; open IN,'<','weird.txt' or die "$!"; { local $/ = "\x0D"; while (<IN>){ my @lines = split /\x0A/; print $lines[0]."\n"; print $lines[1]."\n\n"; } }
poj

Replies are listed 'Best First'.
Re^4: Very weird things when printing (may be an encoding issue?)
by dottornomade (Initiate) on May 30, 2013 at 12:21 UTC

    It works.

    Hail to the Perl Monks!

    Seriously, thank you.