in reply to Re: split on newline
in thread split on newline

That works... the -l is the secret, thank you... I was chomp'ing it manually yesterday and it was blowing up...

Replies are listed 'Best First'.
Re^3: split on newline
by ikegami (Patriarch) on Sep 13, 2014 at 00:29 UTC
    It's not the chomping that was blowing up your code.
    perl -nle' push @w, $_; END { print join ";", @w } '
    is the same as
    perl -ne' BEGIN { $\ = "\n"; } chomp; push @w, $_; END { print join ";", @w } '
Re^3: split on newline
by AnomalousMonk (Archbishop) on Sep 12, 2014 at 20:30 UTC

    You had some other problem yesterday. chomp-ing 'manually' won't blow anything up.