The stupid question is the question not asked | |
PerlMonks |
Re: Students Rank calculation for the below perl scriptby wfsp (Abbot) |
on Apr 15, 2008 at 07:40 UTC ( [id://680445]=note: print w/replies, xml ) | Need Help?? |
You declare @marks outside of the while loop and then
inside the loop. @marks is accumulating the marks for all the students. If that is not what you want move the declaration inside the while loop.
In Section
Seekers of Perl Wisdom
|
|