Say, what's the deal with transforming every element of @_ after the first but then returning the second element? You never get constant values as parameters?
Anyhow, if you write code as list-processing stuff with nice indentation you get something that even looks Pythony. What could be prettier than that?
sub getRef { shift; # !!! $this is a global return map ref $this->getNodeById( $_ ), grep $_ && not ref, @_; }
In reply to Re: The trouble with Perl Idiom
by diotalevi
in thread The trouble with Perl Idiom
by demerphq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |