in reply to How do I print the values of a hash, sorted by the hash keys?

A rather obscure alternative could be

use Data::Dumper; $Data::Dumper::Sortkeys = 1; print Dumper \%hash;