I'd do it this way.
sub xyz { croak 'Bad args' unless @_ == 2 or @_ == 3; my( $yyy, $xxx, $ttt ) = reverse @_; ... }
In reply to Re: Format / Logical Expression / Style Opinions: my, ternary, subroutine, @_
by BrowserUk
in thread Format / Logical Expression / Style Opinions: my, ternary, subroutine, @_
by jffry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |