in reply to set theory w/hashes? arrays? done quickly?
You want to read Mastering Algorithms with Perl. Chapter 6 is about Sets. It also discusses the following Set Modules from CPAN: