Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Assigning values to undef hash reference keys two or more at a time

by gctaylor1 (Hermit)
on Oct 23, 2008 at 23:18 UTC ( [id://719195]=note: print w/replies, xml ) Need Help??


in reply to Assigning values to undef hash reference keys two or more at a time

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.

  • Comment on Re: Assigning values to undef hash reference keys two or more at a time

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://719195]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-25 10:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found