Help for this page

Select Code to Download


  1. or download this
    $text =~ s/(\d+)/munge($1)/eg;
                               ^
                               |
    
  2. or download this
    my $number = shift;
    
  3. or download this
    sub eng_not {
       # Format a numeric value using engineering notation.
    ...
       $val =~ s/\.$//;    # delete trailing decimal point, if any
       return $sign . $val .  $prefix;
    }