Re: fun with hashes!

Keith Ivey <[email protected]> Sun, 25 Nov 2007 13:13:10 -0500
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
Jerrad Pierce wrote:
>> How about using a hash to keep track of which things you've already handled?
> That's just the afore-mentioned count

True, I guess, but lots of these uses are the same.  In Uri's original 
post, "isa" could be considered the same as "sets", and "records" the 
same as "data structures".

With a %seen hash, the count is being calculated, but it's not being 
used except as a boolean, and it's a fairly common idiom.  I'd say 
that's a separate use, but of course Uri can judge.

-- 
Keith C. Ivey <[email protected]>
Washington, DC