my $high_score; while ( ) { chomp; $high_score = $_ if ! defined $high_score || $_ > $high_score; }