From: Dave Rolsky Date: Wed, 5 Jun 2013 15:26:51 +0000 (-0500) Subject: s/@_/@args/ in constructor example X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c0ce8ac6fa5762411abc747625c54cd3c6c91450;p=gitmo%2Fmoose-presentations.git s/@_/@args/ in constructor example --- diff --git a/moose-class/slides/index.html b/moose-class/slides/index.html index e0aad3c..f915065 100644 --- a/moose-class/slides/index.html +++ b/moose-class/slides/index.html @@ -950,10 +950,10 @@ sub BUILD {

Object Construction a la Moose

-
Person->new(@_)
+
Person->new(@args)
    -
  1. Calls Person->BUILDARGS(@_) to turn @_ into a hashref
  2. +
  3. Calls Person->BUILDARGS(@args) to turn @args into a hashref
  4. Blesses a reference
  5. Populates attributes based on the hashref from #1
  6. Calls $new_object->BUILDALL($constructor_args)