in reply to Re: iterative foreach loop
in thread iterative foreach loop
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: iterative foreach loop
by haukex (Archbishop) on Nov 14, 2017 at 11:29 UTC | |
|
Re^3: iterative foreach loop
by 1nickt (Canon) on Nov 14, 2017 at 13:56 UTC |