P is for Practical | |
PerlMonks |
Re: Initializing Hash referenceby zer (Deacon) |
on Jul 17, 2009 at 02:34 UTC ( [id://780903]=note: print w/replies, xml ) | Need Help?? |
In the first example you are setting a referance to a scalar which points to a hash. Similar to:
$err->{'CMD'} = ...
The latter example can be handled similar to
$arrayref = \@ARGV;
so $arrayref = ...
http://perldoc.perl.org/perlref.html
In Section
Seekers of Perl Wisdom
|
|