Keep It Simple, Stupid | |
PerlMonks |
Re: Rows fail to delete without errorby Ovid (Cardinal) |
on Apr 08, 2002 at 21:14 UTC ( [id://157560]=note: print w/replies, xml ) | Need Help?? |
Well, there's the usual part about use strict. If you are using strict, then you're declaring these variables outside of your subroutine. From the way you have the last two lines of the subroutine, it appears to me that you are setting global variables and having other subs rely on them. This is difficult because it can be a problem telling where a variable is initialized, changed, or reused. I can't tell from your code where the problem is (am I missing something simple?), but you can simplify some stuff:
That can become:
Questions:
Cheers, Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In Section
Seekers of Perl Wisdom
|
|