in reply to Re: •Re: Better code for normalizing a list for a HoA?
in thread Better code for normalizing a list for a HoA?

Oh, then you want nested hashes for automatic set reduction:
$states{$data[1]}{$data[0]} = 1; ... for my $state (sort keys %states) { print "$state: ", join(", ", sort keys %{$states{$state}}), "\n"; }
Yes, read the book faster!

-- 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: •Re: Better code for normalizing a list for a HoA?
by bradcathey (Prior) on Jan 17, 2004 at 23:50 UTC
    Thanks again merlyn. Extremely tidy code, enough so that I will need to study it to know exactly how it does its "magic." Oh yeah, and read faster.

    —Brad
    "A little yeast leavens the whole dough."