Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Checking the Ascendency/Descendency of Numeric Array of Any Size

by BrowserUk (Patriarch)
on Mar 23, 2007 at 11:33 UTC ( [id://606210]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub isAscending{ 
        $_[0] < $_[1] and shift() or return 0 while @_>1; 
        return 1;
    }
    
  2. or download this
    sub isAscending{ 
        ( $_[0] < $_[1] or return 0 ), shift while @_ > 1; 
        return 1;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://606210]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-25 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found