Help for this page

Select Code to Download


  1. or download this
    $ perl -MList::MoreUtils=minmax -wMstrict -e '
     my ($n,$x) = minmax(sprintf("%.4g",0.5)); die unless defined $x'
    Died at -e line 2.
    
  2. or download this
    use warnings;
    use strict;
    ...
        my ($min,$max) = minmax(sprintf("%.4g",$in));
        last unless defined $max;
    }