# Command-line (my $x = shift) or die $syntax; (my $y = shift) or die $syntax;
One small problem with this approach is that it does not allow zero as an input. You have to say something like:
die $syntax if ! defined (my $x = shift);
...which is a little more clumsy, since the important part ($x = shift) is way off to the side.
In reply to Re^2: a simple exercise in readability
by kyle
in thread a simple exercise in readability
by apotheon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |