>>>>> "ARJB" == Anthony R J Ball <[EMAIL PROTECTED]> writes:

  ARJB>   It is called auto-vivification, and you can't avoid it.
  ARJB> If you look at a hash of a hash that doesn't exist, perl 
  ARJB> creates the lower hash, rather than giving you an error
  ARJB> for trying to access a hash that does not exist. Instead
  ARJB> do
  ARJB>         unless exists $apples{$t} && $apples{$t}{weight}

that exists is not needed. top level hash entries like that are not
autovivified.

uri

-- 
Uri Guttman  ------  [EMAIL PROTECTED]  -------- http://www.stemsystems.com
----- Stem and Perl Development, Systems Architecture, Design and Coding ----
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org
Damian Conway Perl Classes - January 2003 -- http://www.stemsystems.com/class
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to