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

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 } '