This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl 5.003_05: pod/perlfunc.pod
[perl5.git] / pod / perlref.pod
index dc10eed..53e9f7d 100644 (file)
@@ -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.