Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Assigning values to undef hash reference keys two or more at a timeby gctaylor1 (Hermit) |
on Oct 23, 2008 at 23:18 UTC ( [id://719195]=note: print w/replies, xml ) | Need Help?? |
I was thinking the infix operator needed to be used to dereference $hashref. Or more accurately, I guess I thought I could use it if I wanted and I chose to use it for consistency purposes. Plus it was just one thing I needed to remember instead of the various other ways to dereference and the docs I read suggested it might be easier to read. So the suggestion works by-the-way. I'm still trying to understand why infix -> didn't work.
In Section
Seekers of Perl Wisdom
|
|