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

Re: Modules to reduce syntax?

by hippo (Bishop)
on Dec 22, 2021 at 09:50 UTC ( [id://11139825]=note: print w/replies, xml ) Need Help??


in reply to Modules to reduce syntax?

You can reduce the amount of syntax in the line you provided and it doesn't even require the use of an additional module. The expression $ref->{'foo'}{$bar} is exactly equivalent to $ref->{foo}{$bar} and the latter has the advantage that you don't waste any time pondering why the author has chosen to enclose foo in single quotes like that.


🦛

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-03-29 01:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found