Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    
    @a = (1, 2, 3, 3, 4);
    print check_monotonicity(@a), ": ", join(', ',@a), "\n";
    
  2. or download this
    root@swill ~/PerlMonks
    $ ./AscDesc.pl
    ...
    0: 1, 2, 3, 3, 4
    root@swill ~/PerlMonks
    $