perlref clarification (was: Re: Is this a bug or a feature?)
David Landgren [Mon, 25 Sep 2006 15:03:33 +0000 (17:03 +0200)]
Message-ID: <4517D3A5.4010200@landgren.net>

p4raw-id: //depot/perl@28889

pod/perlref.pod

index afc1671..65abf22 100644 (file)
@@ -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<reference, symbolic> X<reference, soft>
 X<symbolic reference> X<soft reference>