From: Dave Rolsky Date: Thu, 3 Feb 2011 21:24:01 +0000 (-0600) Subject: Remove slide on sharing a ref in a default (too obscure to really be worthwhile) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3a897c3d795d99b7222dfa8ae034545ad795f06a;p=gitmo%2Fmoose-presentations.git Remove slide on sharing a ref in a default (too obscure to really be worthwhile) --- diff --git a/moose-class/slides/index.html b/moose-class/slides/index.html index 7df4bcc..a5f398f 100644 --- a/moose-class/slides/index.html +++ b/moose-class/slides/index.html @@ -1833,22 +1833,6 @@ has packages => (
-

What if I Want to Share?

- -
package Person;
-use Moose;
-
-my $highlander_bank =
-    Bank->new(
-        name => 'Clan MacLeod Trust' );
-
-has bank => (
-    is      => 'rw',
-    default => sub { $highlander_bank },
-);
-
- -

Builder