in reply to Using expressions in arrays for pattern matching
a) you are opening params.txt file again and again in the for loop. You should move it out.
b) you are opening Two files (INPUT, and FILE) one after the other. So on which file the following IF statement operates?
if (/\s$x\s*\d*/){
|
|---|