in reply to Re^2: a simple exercise in readability
in thread a simple exercise in readability
As for the "little more clumsy":
die $syntax if ! defined (my $x = shift);
and assuming you needed to allow for zero valued input, I'd be inclined to go with the slightly pithier:
defined(my $x = shift) or die $syntax;
|
|---|