Quid has asked for the wisdom of the Perl Monks concerning the following question:
#!C:\Perl\bin\perl #Temporary Variables -Would normally be from form by user $radius = 12; $numsides = 10; $cangle = 180/$numsides; $pi = 3.141592654; $halfside = $radius*sin($cangle*$pi/180); $apothem = $radius*cos($cangle*$pi/180); $area = $halfside*$apothem*$numsides; print "Content-type:text/html\n\n"; print "<html>\n"; print "Area is $area"; print " when radius is $radius and there are $numsides sides."; print "</html>\n";</p>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Post forms & sending data
by exussum0 (Vicar) on May 11, 2004 at 02:46 UTC |