disable auto-instantiation or warn about it

Uri Guttman uri at stemsystems.com
Fri Jul 13 20:09:42 BST 2007

>>>>> "DK" == Dirk Koopman <djk at tobit.co.uk> writes:

  DK> Uri Guttman wrote:
  >>>>>>> "JS" == Jonathan Stowe <jns at gellyfish.com> writes:
  JS> It's generally called auto-vivification. However you want to
  >> "use
  JS> strict" that will stop that particular class of bug.
  >> nope. strict has no effect on autoviv.
  >> and there is no simple way to disable it (probably some tied/XS thing
  >> could do it).

  DK> IIRC (can't find the book at the moment [due to a recent deluge of
  DK> "new" ones]), that Damian Conway devotes at least one chapter on the
  DK> subject of autoviv control in "Object Oriented Perl".

and i wrote a tutorial about autoviv a while back that many have found


it even has a exists replacement sub that won't autovivify.


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