From: Dave Rolsky Date: Sat, 17 Jul 2010 03:35:07 +0000 (-0500) Subject: Setting a read-only attr is an error X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cda9a369c47b13806363b6f70d75b019cdd9f64c;p=gitmo%2Fmoose-presentations.git Setting a read-only attr is an error --- diff --git a/moose-class/slides/index.html b/moose-class/slides/index.html index 3a9878c..d2c2ed4 100644 --- a/moose-class/slides/index.html +++ b/moose-class/slides/index.html @@ -1107,8 +1107,7 @@ has first_name => ( is => 'ro' ); my $person = Person->new( first_name => 'Dave' ); -$person->first_name('Stevan'); -print $person->first_name; # Dave +$person->first_name('Stevan'); # dies