sub isAscending{ $_[0] < $_[1] and shift() or return 0 while @_>1; return 1; }
Update: A less clumbsy formulation
sub isAscending{ ( $_[0] < $_[1] or return 0 ), shift while @_ > 1; return 1; }
In reply to Re: Checking the Ascendency/Descendency of Numeric Array of Any Size
by BrowserUk
in thread Checking the Ascendency/Descendency of Numeric Array of Any Size
by monkfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |