Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1066305]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2021-10-23 20:55 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (88 votes). Check out past polls.