in reply to Perl appears to be dropping last character of line

The question is: What is in actually inside the array ref $data and how did you put it in there?

Please try something like

use Data::Dumper; print Dumper $data;

And show us the first 10 lines.

From your demonstration it doesn't make sense that you had to do 3 shifts to skip lines, so I'm assuming your concept of end-of-line is somehow broken.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Replies are listed 'Best First'.
Re^2: Perl appears to be dropping last character of line
by haukex (Archbishop) on Dec 06, 2019 at 13:21 UTC
      Good point! :)

      I mostly use Data::Dump , which is unfortunately not core, hence not easy for beginners.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice