friedo wrote:
> ...consider thinking about why you have a sub where the first parameter is optional...
Because it is a wrapper for a command. Suppose the command was ls. It would be convenient to call the sub, thus:
ls('-lrt', '/home');
Does this convenience not outweigh breaking from the convention that optional args go last?
In reply to Re^2: Format Style Opinions: my, ternary, subroutine
by jffry
in thread Format / Logical Expression / Style Opinions: my, ternary, subroutine, @_
by jffry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |