The advice from GrandFather about global variables was not about correcting your bug but making your script a) debuggable and b) readable by others.
The next thing to do is either a) use print statements or the built-in debugger to tell you for example what data the subroutine gets per invocation and what it does with it or b) reproduce your refinded script on this website to let perlmonks help you with the search for the bug (ideally a minimal(!) runable(!) script that shows the problem)
In reply to Re^3: Excel editing perl
by jethro
in thread Excel editing perl
by tarunkhanna
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |