See perlref and Modern Perl
Making References References can be created in several ways. 1. By using the backslash operator on a variable, subroutine, or valu +e. (This works much like the & (address-of) operator in C.) This typically creates *another* reference to a variable, because there +'s already a reference to the variable in the symbol table. But the symbol table reference might go away, and you'll still have the reference that the backslash returned. Here are some examples: $scalarref = \$foo; $arrayref = \@ARGV; $hashref = \%ENV; $coderef = \&handler; $globref = \*foo;
In reply to Re: Is it possible to assign an array reference to a value in hash
by Anonymous Monk
in thread Is it possible to assign an array reference to a value in hash
by snape
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |