writeFiles function only works once
That is not your problem.
open FILE, "+>", $filename or die $!;
The file mode you are using will overwrite the previous contents of the file. You need to use append mode which will not overwrite the previous contents:
open FILE, '>>', $filename or die $!;
In reply to Re: Function skips
by jwkrahn
in thread Function skips
by borovez
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |