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

Re^2: I use postfix dereferencing ...

by talexb (Canon)
on Feb 22, 2019 at 17:21 UTC ( #1230403=note: print w/replies, xml ) Need Help??

in reply to Re: I use postfix dereferencing ...
in thread I use postfix dereferencing ...

The whole postfix approach was cute when it was c = *p++ in C. Get the value pointed to by the pointer, then increment the pointer. Sure.

Turning an arrayref into an array (@{ $array_ref }, or @$array_ref), as has already been mentioned, is fine. Going to $array_rec->@* instead seems to obscure what's going on .. like you're giving directions, and saying, "Up ahead, turn right .. oh, but first, turn left.".

That's fine, now I'm aware, and can answer if it comes up in a job interview. And I'll avoid using it like the plague.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2019-07-18 11:19 GMT
Find Nodes?
    Voting Booth?

    No recent polls found