Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Students Rank calculation for the below perl script

by wfsp (Abbot)
on Apr 15, 2008 at 07:40 UTC ( [id://680445]=note: print w/replies, xml ) Need Help??


in reply to Students Rank calculation for the below perl script

You declare @marks outside of the while loop and then
push(@marks,$3,$4,$5);
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.
while(my $line=<FILE>){ my @marks; ... }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://680445]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-20 10:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found