my @txtfile; while (<$fh>) { chomp; push @txtfile, $_; }
Alternately, after you have read the file into your array, chomp the whole array:
chomp @txtfile;
In reply to Re: capture multiple lines
by toolic
in thread capture multiple lines
by dbrock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |