[Nh-pm] Pesky darn hashes...
Ken Ambrose
kena at well.com
Thu Sep 5 22:27:43 CDT 2002
It's been a while since I used hashes, so I'm probably doing something
woefully wrong. But, why doesn't:
while (<>){
[...]
%addresses = ($biggaddr => $_);
}
foreach $key (sort keys %addresses){
print "$key = $addresses{$key}\n";
}
work? $bigaddr is an integer, if that makes any difference, and the
"foreach" section was swiped bodily out of a Perl book o' mine.
Thanks!
-Ken
More information about the Nh-pm
mailing list