in reply to Compare hash !

[ I moved your post to Seekers of Perl Wisdom. Cool Uses for Perl is for showing off interesting or useful pieces of Perl code ]

how to compare them

Compare what to what?

how to [...] print name of the biggest

use strict; use warnings; use feature qw( say ); use List::Util qw( reduce ); my %students = ( ... ); my $highest = reduce { $students{$a} >= $students{$b} ? $a : $b } keys(%students); say $students{$highest};

List::Util, say