More untested func to avoid empty slots:
my @myarray = map { chomp; $_ } grep { $_ ne "" } <DATA>;
Regards, Karl
«The Crux of the Biscuit is the Apostrophe»
Furthermore I consider that Donald Trump must be impeached as soon as possible
In reply to Re^4: from txt file to array
by karlgoethebier
in thread from txt file to array
by WisDomSeeKer34
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |