Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    #my $weight = $1;
    print "$+{weight}\n";
    print "Weight:\n" unless $x=~/Gkg\./g;
    
  2. or download this
        $metric = 1;  # use metric units
        $x = <FILE>;  # read in measurement
    ...
        else {
            print "Units error!" unless $x =~ /\Glbs\./g;
        }