in reply to Re^2: from txt file to array
in thread from txt file to array

And with saving it to an array is easy too:

Ummm, first three lines of my post that you replied to:

Into an array:
chomp (my @data = <DATA>); print "$_\n" for @data;

That saves the whole thing to an array without an explicit loop, *and* uses the default var $_ to show the implicit nature when looping over data...

Replies are listed 'Best First'.
Re^4: from txt file to array
by locked_user sundialsvc4 (Abbot) on Jun 23, 2017 at 01:21 UTC

    Stevie, I tried to add a parenthetical comment to your excellent post without taking away from it.   Maybe I didn’t succeed.   My apologies.

      Your style of overwhelming with biblical-like nonsense all over the place is known well around here, so to me, it appeared as though you bit off of a post without reading it thoroughly, then repeated what it contained in a different way.

      You don't need to apologize to me; I don't care. To be honest, after I responded, I realized that it was one of the very first times that I had seen you post actual Perl code, and felt that perhaps that was the start of something nice.

      No offense taken. Keep posting actual code.