Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 23rd, 2012  |  syntax: Perl  |  size: 0.48 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/usr/bin/perl
  2.  
  3. #print "Content-type: text/html\n\n";
  4.  
  5. use CGI qw(:standard);
  6.  
  7. print header();
  8. print start_html('Roll Calculations!');
  9. print "Single Roll Calculation (following closely to the example)"
  10. print "Length = ", param('Length'), ".";
  11. print "Width = ", param('Width'), ".";
  12. print "Height = ", param('Height'), ".";
  13. print "Coverage = ", param('Coverage'), ".";
  14. #rolls = (Length+Width)*2*Height/Coverage;
  15. #print "<center>Required Rolls: ", param('rolls'), ".</center>";