From: David Landgren Date: Mon, 25 Sep 2006 15:03:33 +0000 (+0200) Subject: perlref clarification (was: Re: Is this a bug or a feature?) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=35efdb202dd84807e51571cba301a15a16a7ed17;p=p5sagit%2Fp5-mst-13.2.git perlref clarification (was: Re: Is this a bug or a feature?) Message-ID: <4517D3A5.4010200@landgren.net> p4raw-id: //depot/perl@28889 --- diff --git a/pod/perlref.pod b/pod/perlref.pod index afc1671..65abf22 100644 --- a/pod/perlref.pod +++ b/pod/perlref.pod @@ -455,6 +455,12 @@ chicanery is also useful for arbitrary expressions: print "That yields @{[$n + 5]} widgets\n"; +Similarly, an expression that returns a reference to a scalar can be +dereferenced via C<${...}>. Thus, the above expression may be written +as: + + print "That yields ${\($n + 5)} widgets\n"; + =head2 Symbolic references X X X X