Thanks for the information and links - I will read. I have changed my script (see below), is this the best way.?
open (my $in, "<", "TEXT2.txt") or die "Can't open input.txt: $!"; while (<$in>) { # assigns each line in turn to $_ print "$_"; # print contents of $_ line by line } close $in;
In reply to Re^2: iterative foreach loop
by hchana
in thread iterative foreach loop
by hchana
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |