There are 2 key conceptual problems here.
Firstly you reference @files in a location where it has not been declared. You need to consider scoping with regard to subs.
Secondly, you have put your new code inside a for loop which is itself inside a while loop. Can you explain why you think this means it would only be executed once?
In reply to Re^5: Read from multiple files change the data with a script and the write the respective output files with a different extension
by hippo
in thread Read from multiple files change the data with a script and the write the respective output files with a different extension
by Akatsuki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |