my $highest = 0; my $lowest; # undef foreach (@list_of_int) { $highest =>> $_; $lowest =<< $_; }