From: Hans Dieter Pearcey Date: Mon, 7 Dec 2009 18:52:18 +0000 (-0500) Subject: make it clear that auto_deref still returns references in scalar context X-Git-Tag: 0.93_01~50 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1668f3d7a72d195f83c5cc5d19ea0426f58f369a;p=gitmo%2FMoose.git make it clear that auto_deref still returns references in scalar context --- diff --git a/lib/Moose.pm b/lib/Moose.pm index 315d6d8..a4cab84 100644 --- a/lib/Moose.pm +++ b/lib/Moose.pm @@ -465,8 +465,10 @@ If an attribute is marked as lazy it B have a default supplied. =item I (1|0)> -This tells the accessor whether to automatically dereference the value returned. -This is only legal if your C option is either C or C. +This tells the accessor to automatically dereference the value of this +attribute when called in list context. The accessor will still return a +reference when called in scalar context. This is only legal if your C +option is either C or C. =item I $code>