Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20

by webfiend (Vicar)
on Dec 09, 2013 at 17:06 UTC ( #1066305=note: print w/ replies, xml ) Need Help??


in reply to use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20

It makes some sense to me. My preference has been for the @{ ... } style of dereferencing. That style becomes cumbersome when ... is a large expression. I would hit the end of the expression and bounce back to the start of the block to remind myself what was needed. My workaround for that was to add temporary variables whose only purpose was to make @{ ... } easier to read.

...->@* reduces the need for those temporary variables because it allows a clear "treat this thing right here like an array." I don't know if this is better or worse, considering that we've been doing it the other way for years. It's just different. I'll try it, because I am a sucker for syntax.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2016-07-28 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (253 votes). Check out past polls.