But here my taste would be a more functional idiom:my @myarray; while (my $item = <DATA>) { chomp $item; push @myarray, $item; }
my @myarray = map { chomp; $_ } <DATA>;
In reply to Re^3: from txt file to array
by morgon
in thread from txt file to array
by WisDomSeeKer34
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |