in reply to Re: Algorithm needed
in thread Algorithm needed
my %hash = (); while (<DATA>) { # split based on spaces my ($hex, $foo, $int) = split /\s+/; $hash{$hex}{$int}++; } for (keys %hash) { print "$_ = ", join(", ", sort keys %{$hash{$_}}), "\n"; }
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: •Re: Re: Algorithm needed
by sauoq (Abbot) on Dec 05, 2002 at 23:36 UTC | |
by merlyn (Sage) on Dec 06, 2002 at 00:28 UTC | |
by sauoq (Abbot) on Dec 11, 2002 at 20:06 UTC |