|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: Making a dynamic high scores tableby Athanasius (Vicar) |
| on Dec 01, 2012 at 16:14 UTC ( #1006612=note: print w/ replies, xml ) | Need Help?? |
|
When you declare a variable with my, you initialise it. If you do this inside a loop, the variable is re-initialised on each loop iteration. But if you want the variable to grow as the loop iterates, you need to declare it once only, before the loop:
Hope that helps, Athanasius <°(((>< contra mundum
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||