From: gfx Date: Fri, 14 Aug 2009 10:00:23 +0000 (+0900) Subject: Replace BEGIN{ extends .. } with use Moose -extends => .. in FAQ.pod X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=336e35d3b0c3e8c2f60e77810d891edb85c59cd8;p=gitmo%2FMoose.git Replace BEGIN{ extends .. } with use Moose -extends => .. in FAQ.pod --- diff --git a/lib/Moose/Manual/FAQ.pod b/lib/Moose/Manual/FAQ.pod index 4f5888a..91cb6fb 100644 --- a/lib/Moose/Manual/FAQ.pod +++ b/lib/Moose/Manual/FAQ.pod @@ -375,11 +375,11 @@ will call them Roles. Currently when you subclass a module, this is done at runtime with the C keyword but attributes are checked at compile time by -Perl. To make attributes work, you must place C in a C -block so that the attribute handlers will be available at compile time +Perl. To make attributes work, you must C +so that the attribute handlers will be available at compile time like this: - BEGIN { extends qw/Foo/ } + use Moose -extends => qw/Foo/; Note that we're talking about Perl's subroutine attributes here, not Moose attributes: