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...
In reply to Re^3: from txt file to array
by stevieb
in thread from txt file to array
by WisDomSeeKer34
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |