[londonperl] Re: disable auto-instantiation or warn about it

Uri Guttman uri at stemsystems.com
Fri Jul 13 21:36:55 BST 2007

>>>>> "DA" == David Alban <extasia at extasia.org> writes:

  DA> Nevermind.  The probability of finding the bug in your code is
  DA> directly proportional to the number of folks to whom you just sent it.

your code or mine? or royal your? i gather that is a saying (so put it
in quotes!) and so it means your code. the code in the tutorial is
tested and no complaints in a long time. :)

  DA> The arg to ref() should have been the same as the arg to exists().  In
  DA> which case, ref() does indeed cause $$h{ foo } to be autovified:

every function causes autovivication since it is done in expression
evaluation as you do the deref of the undef value and will happen before
any function is called.

  DA> My only defense is that the output I sent was the true output of the
  DA> (buggy) code I sent.  I'll go back a re-read the tutorial.

or i need to rewrite it? it is very old and still the only deep coverage
of autoviv i have seen around.


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

More information about the london.pm mailing list