Additionally, from open, use the three arg open:
open(my $fh, "<", "input.txt") or die "Can't open < input.txt: $!";
Also: http://modernperlbooks.com/mt/2010/04/three-arg-open-migrating-to-modern-perl.html.
In reply to Re: reading the wrong input file out of 2 opened file
by marto
in thread reading the wrong input file out of 2 opened file
by perl_boy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |