CallingChain

Simple CGI Script

Sep 6th, 2015
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.33 KB | None | 0 0
  1. #!/usr/bin/perl -w
  2.  
  3. use CGI;
  4.  
  5. $cgi = new CGI();
  6.  
  7. print $cgi->header();
  8.  
  9. print '<?xml version="1.0" encoding="UTF-8"?>';
  10.  
  11. print '<!DOCTYPE html>
  12. <html>
  13.   <head>
  14.  
  15.         <title>Perl CGI test</title>
  16.   </head>
  17.   <body>';
  18.  
  19. print '
  20.      <p>
  21.         Hello world!
  22.      </p>';
  23.  
  24.  
  25. print '
  26.   </body>
  27.  
  28. </html>
  29. ';
Advertisement
Add Comment
Please, Sign In to add comment