in reply to Loop skipping
print <<END_DEBUG if $DEBUG; \$m = $m \$n = $n \$j = $j \$row = $row END_DEBUG
The variables $m and $n are easy to mix up... if you didn't cut and paste your exact code, are you sure you haven't accidentally typed $m++ rather than $n++ somewhere? The debug output will help you locate mistakes that you can't find while staring at the code.
(Don't forget to put somewhere near the top of your code)
my $DEBUG = 1;
--
You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.
|
|---|