A wind speed of @##.# knots equals: $wc{wind}
@##.# Miles per Hour $MPH
@##.# Meters per Second $MperS
@##.# Kilometers per Hour $KMH
Beaufort Scale: Force @##, @<<<<<<<<<<<<<<< $force $beaufort . } else { print "An illegal character was entered.\n"; die } } elsif ($wc{units} eq MPH) { if ($wc{wind} =~ /(\d+)\.?(\d+)|^\d+$/) { $knots = $wc{wind} * 0.868391; $MperS = $wc{wind} * 0.44704; $KMH = $wc{wind} * 1.609344; $~ = "WC2"; write; format WC2 =
A wind speed of @##.# Miles per Hour equals: $wc{wind}
@##.# Knots $knots
Beaufort Scale: Force @##, @<<<<<<<<<<<<<<< $force $beaufort . } else { print "An illegal character was entered.\n"; die } } elsif ($wc{units} eq KperH) { if ($wc{wind} =~ /(\d+)\.?(\d+)|^\d+$/) { $knots = $wc{wind} * 0.539593; $MperS = $wc{wind} * 0.277778; $MPH = $wc{wind} * 0.621371; $~ = "WC3"; write; format WC3 =
A wind speed of @##.# Kilometers per Hour equals: $wc{wind}
Beaufort Scale: Force @##, @<<<<<<<<<<<<<<< $force $beaufort . } else { print "An illegal character was entered.\n"; die } } else { if ($wc{wind} =~ /(\d+)\.?(\d+)|^\d+$/) { $knots = $wc{wind} * 1.94254; $MPH = $wc{wind} * 2.23694; $KMH = $wc{wind} * 3.6; $~ = "WC4"; write; format WC4 =
A wind speed of @##.# Meters per Second equals: $wc{wind}
Beaufort Scale: Force @##, @<<<<<<<<<<<<<<< $force $beaufort . } }