Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> curly braces have two different purposes. One is to dereference arrays and hashes. For example
curly braces have more purposes
This my %myhash = %{ $href } ; is just a form of grouping like in the first example to clarify the precedence. Which doesn't make much sense here since my %myhash = %$href ; has the exact same effect. And it's not the curly which does the dereference, but the %sigil.
Cheers Rolf
In reply to Re^2: Tutorial RFC: Guide to Perl references, Part 1
by LanX
|
|