in reply to from txt file to array
Into an array:
chomp (my @data = <DATA>); print "$_\n" for @data; __DATA__ one two three
Iterating over it as a file handle without saving into an array:
while (<DATA>){ chomp; print "$_\n"; } __DATA__ one two three
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: from txt file to array
by locked_user sundialsvc4 (Abbot) on Jun 21, 2017 at 22:04 UTC | |
by stevieb (Canon) on Jun 21, 2017 at 23:48 UTC | |
by locked_user sundialsvc4 (Abbot) on Jun 23, 2017 at 01:21 UTC | |
by stevieb (Canon) on Jun 23, 2017 at 02:45 UTC | |
by morgon (Priest) on Jun 21, 2017 at 23:11 UTC | |
by karlgoethebier (Abbot) on Jun 22, 2017 at 08:36 UTC |