Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1066305]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2018-04-22 07:55 GMT
Find Nodes?
    Voting Booth?