Why doesn't this script work? I am trying to open, read and process multiple files using a "for" loop. I know there are "dir" commands that I could use, but why doesn't this work?
Not a programmer. Just trying to learn some Perl to do research. Please excuse any transgressions and/or dumb mistakes.
for ($i=2; $i<4; $i +=1) {
open (DAT$i, "T$iT.txt");
@A$i=<DAT$i>;
print @A$i;
}