#!/usr/local/bin/perl @m = ("Foo","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec", "B/W"); print "Content-type: text/html\n\n"; print "Biweekly Mortgage Calculation\n"; print "

Biweekly Mortgage Calculation

\n"; $arglist = $ENV{'QUERY_STRING'}; if (length($arglist) < 3) { print<

Change these fields as desired:

  • Principal Loan Balance
  • Annual Interest Rate (%)
  • Amortization Length (Years)
  • Show full amortization table?
  • EOF exit; } @f = split("&",$arglist); $prin = substr(@f[0],5); $int = substr(@f[1],4); $term = substr(@f[2],5); $full= substr(@f[3],5); $stry2 = $stry; for ($i = 1; $i < 13; $i++) { if (@m[$i] eq $strm) { $strt = $i; } } print "

    For the given values:

    \n