fork download
  1. #!/usr/bin/perl
  2. print "Content-type:text/html\r\n\r\n";
  3. print '<html>';
  4. print '<head>';
  5. print '<title>Hello Word - First CGI Program</title>';
  6. print '</head>';
  7. print '<body>';
  8. print '<h2>Hello Word! This is my first CGI program</h2>';
  9. print '</body>';
  10.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
Content-type:text/html

<html><head><title>Hello Word - First CGI Program</title></head><body><h2>Hello Word! This is my first CGI program</h2></body>