Cool new Perl feature: postfix dereferencing
perltricks.com
Cool new Perl feature: postfix dereferencing
1–3 of 3 posts
Re: Cool new Perl feature: postfix dereferencing
#2I'm unconvinced - it makes code reading more difficult by moving the "this is what you're dealing with" sigil to the far end, away from your current focus. In his examples, it's not terrible but imagine this:
push @fish, $monkey->{flange}->{trim}->{flaps}->@*;
Instead of immediately knowing you're pushing a list of items by seeing this: push @fish, @{ $monkey ...
You have to read the entire line to figure it out. Bleh.Re: Cool new Perl feature: postfix dereferencing
#3I'm unconvinced - it makes code reading more difficult by moving the "this is what you're dealing with" sigil to the far end, away from your current focus. In his examples, it's not terrible but imagine this: push @fish, $monkey->{flange}->{trim}->{flaps}->@*; Instead of immediately knowing you're pushing a list of items by seeing this: push @fish, @{ $monkey ... You have to read the entire line to figure it out. Ble…
That's exactly my argument against it, it's less skimmable