You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
352 B

3 years ago
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4. use CGI;
  5. my $q = CGI->new;
  6. print $q->header;
  7. my $a = $q->param('a');
  8. my $b = $q->param('b');
  9. my $result;
  10. $result = (scalar $a) + (scalar $b);
  11. print <<EOF
  12. <!DOCTYPE html>
  13. <html>
  14. <head><title> Hello </title></head>
  15. <body>
  16. <h1> Hello World </h1>
  17. <p>
  18. $result
  19. </p>
  20. </body>
  21. </html>
  22. EOF