![]() |
|
Syntactic Confectionery Delight | |
PerlMonks |
Re: Hash references and efficiencyby jsprat (Curate) |
on Aug 03, 2002 at 04:41 UTC ( #187295=note: print w/replies, xml ) | Need Help?? |
Yes, it populates the hash. You are dereferencing the original hashref, creating a copy and assigning it to a new hash. If you don't like typing curly brackets, try the arrow syntax ($hashref->{key}). BTW, treating a hashref differently than a regular hash can be considered a good thing when you review old code.
In Section
Seekers of Perl Wisdom
|
|