Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
As might be expected, I need to reach numbers higher than 12 in order for my code to work properly. My variable is both local AND named such that I can be certain no other variable exists by that name AND I pared its use down to merely increment, print yet it does this to me... Thanks in advance for any assistance.my $onlyUse = 0; while (my @unitRow = $csr2->fetchrow) { my $unit = $unitRow[1]; unless($seen{$unit}) { $seen{$unit}++; $onlyUse++; print " $onlyUse ";next; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Auto-increment wraps at 12
by GrandFather (Saint) on Jan 16, 2008 at 23:55 UTC | |
|
Re: Auto-increment wraps at 12 (other half)
by tye (Sage) on Jan 17, 2008 at 00:17 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |