Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Students Rank calculation for the below perl scriptby moritz (Cardinal) |
on Apr 15, 2008 at 08:14 UTC ( [id://680451]=note: print w/replies, xml ) | Need Help?? |
Just two minor remarks:
my $totalmarks = reduce { $a + $b } @marks; If you resort to List::Util (Which isn't a bad idea at all) you can just as well use sum @marks. my $fullname = ""; Since you don't use it, you don't have to declare it.
In Section
Seekers of Perl Wisdom
|
|