>>>>> "KI" == Keith Ivey <[EMAIL PROTECTED]> writes:

  KI> 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

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

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

i have never run into a situation where i may process some items and
later some more and need to track them with a hash. it doesn't mean that
isn't a good use but i don't see why it couldn't be done
differently.

then again, i eschew else clauses which is rare. i just seem to code in
a way that i very rarely need them. and i am not talking obscure code,
just judicious use of statement modifiers, subs, logic order that
generally eliminates the need for else. others will use else as they
please.

thanx,

uri

-- 
Uri Guttman  ------  [EMAIL PROTECTED]  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org

Reply via email to