diff options
author | Gurusamy Sarathy <gsar@engin.umich.edu> | 1996-09-04 02:54:56 +0000 |
---|---|---|
committer | Andy Dougherty <doughera@lafcol.lafayette.edu> | 1996-09-04 02:54:56 +0000 |
commit | 58e0a6aef843ff1011481f826c2a83b86bc9e67a (patch) | |
tree | 4d3657d456e0e76435a341feda756e3c551f8a46 /pod/perlref.pod | |
parent | d8d253f04ead39466658b138fa78f1ec8e7fc42a (diff) | |
download | perl-58e0a6aef843ff1011481f826c2a83b86bc9e67a.tar.gz |
Re: \ ( @array ) busted for lexical @array (once more)
Diffstat (limited to 'pod/perlref.pod')
-rw-r--r-- | pod/perlref.pod | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pod/perlref.pod b/pod/perlref.pod index dc10eedaf2..53e9f7da1a 100644 --- a/pod/perlref.pod +++ b/pod/perlref.pod @@ -73,8 +73,11 @@ Note that taking a reference to an enumerated list is not the same as using square brackets--instead it's the same as creating a list of references! - @list = (\$a, \$b, \$c); - @list = \($a, $b, $c); # same thing! + @list = (\$a, \@b, \%c); + @list = \($a, @b, %c); # same thing! + +As a special case, C<\(@foo)> returns a list of references to the contents +of C<@foo>, not a reference to C<@foo> itself. Likewise for C<%foo>. =item 3. |