I have this statement;
foreach my $key ( keys %filehash ) {
print $key $filehash{$key}-[0]\t\t\t$filehash{$key}-[3]\t
$filehash{$key}-[2]\t $filehash{$key}-[1]\n;
}
but wish to sort the output by $filehash{$key}-[0]. Is it possible? How
do I do this?
I can't make a separate hash of the
Owen rc...@pcug.org.au asked:
I have this statement;
foreach my $key ( keys %filehash ) {
print $key $filehash{$key}-[0]\t\t\t$filehash{$key}-[3]\t
$filehash{$key}-[2]\t $filehash{$key}-[1]\n;
}
but wish to sort the output by $filehash{$key}-[0]. Is it possible?
How do I do this?
Hi Owen,
On Tuesday 11 May 2010 14:10:49 Owen wrote:
I have this statement;
foreach my $key ( keys %filehash ) {
print $key $filehash{$key}-[0]\t\t\t$filehash{$key}-[3]\t
$filehash{$key}-[2]\t $filehash{$key}-[1]\n;
}
but wish to sort the output by $filehash{$key}-[0]. Is it