I fail to see the confusion. So what if I use $o->{from} instead of $from? That's just sugar that has a slight readability edge, but not enough to make my P5 code more convoluted. It's a micro-optimization. The bigger gains are naming at all, <50 line subs, 78char lines, and the like.sub convert { my ($o) = @_; return if grep { !exists $o->{$_} } qw( from to thing ); ... }
In reply to Re: Your named arguments
by dragonchild
in thread Your named arguments
by Juerd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |