in reply to How do I print the values of a hash, sorted by the hash keys?
However, my first answer works well with a join():foreach my $key (sort keys %data) { print $data{$key} . $/; }
print join('|', @data{sort keys %data});
Originally posted as a Categorized Answer.
|
---|