I'd advice you to use strict and declare the variables in the right scope with my. that should clear up most if not all of the problems.
Update: missed the undef statement. using strict is still a better idea, though.
In reply to Re: Why output is appending in each file??
by Joost
in thread What is the problem with this script as no output
by cybersmithuk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |