my @data= apply {chomp} <$fh>;.
Chris
Update: Or more simply, chomp(my @data = <$fh>);
In reply to Re^3: Replace Array Elements with Hash Values
by Cristoforo
in thread Replace Array Elements with Hash Values
by shortyfw06
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |