keys %bigHash #### sort {...} #### [...] #now the brackets #### my @foo=sort @bar; return \@foo; #### my $foo=[sort @bar]; return $foo;