diff options
author | David Landgren <david@landgren.net> | 2006-09-25 17:03:33 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-09-25 13:10:45 +0000 |
commit | 35efdb202dd84807e51571cba301a15a16a7ed17 (patch) | |
tree | cb7ced25d851f2f1e721dc3c0203a225677e72a9 /pod/perlref.pod | |
parent | 265c4333c900bc8f4c5f39d017cc3cb654fad94d (diff) | |
download | perl-35efdb202dd84807e51571cba301a15a16a7ed17.tar.gz |
perlref clarification (was: Re: Is this a bug or a feature?)
Message-ID: <4517D3A5.4010200@landgren.net>
p4raw-id: //depot/perl@28889
Diffstat (limited to 'pod/perlref.pod')
-rw-r--r-- | pod/perlref.pod | 6 |
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> |