summaryrefslogtreecommitdiff
path: root/pod/perlref.pod
diff options
context:
space:
mode:
Diffstat (limited to 'pod/perlref.pod')
-rw-r--r--pod/perlref.pod6
1 files changed, 6 insertions, 0 deletions
diff --git a/pod/perlref.pod b/pod/perlref.pod
index afc1671fdf..65abf22ccb 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<reference, symbolic> X<reference, soft>
X<symbolic reference> X<soft reference>