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 | |
by stevieb (Canon) on Jun 23, 2017 at 02:45 UTC |