From: Ricardo Signes Date: Tue, 8 May 2012 23:06:50 +0000 (-0400) Subject: document that auto_deref is wantarray-based X-Git-Tag: 2.0800~75 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d18b8cb5559067c64a65a66a0604d787091abf3d;p=gitmo%2FMoose.git document that auto_deref is wantarray-based --- diff --git a/lib/Moose/Manual/Attributes.pod b/lib/Moose/Manual/Attributes.pod index 5ff0bb1..66d9364 100644 --- a/lib/Moose/Manual/Attributes.pod +++ b/lib/Moose/Manual/Attributes.pod @@ -606,12 +606,13 @@ it. If your attribute is an array reference or hash reference, the C option will make Moose dereference the value when it is -returned from the reader method: +returned from the reader method I: my %map = $object->mapping; This option only works if your attribute is explicitly typed as an -C or C. +C or C. When the reader is called in I context, +the reference itself is returned. However, we recommend that you use L traits for these types of attributes, which gives you much more control over how