title: How can I call a Perl script inside HTML page?
body: <p>I have a single HTML file, how I use a Perl script(date/hour) in the HTML code?
  My goal: show a date/hour in HTML
  Obs.: alone both script are ok.</p>
  
  <p>Example:
  HTML File:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  code or foo.pl script
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Perl script(foo.pl):</p>
  
  <pre><code>#!/usr/local/bin/perl
  use CGI qw/:push -nph/;
  $| = 1;
  print multipart_init(-boundary=&gt;'----here we go!');
  for (0 .. 4) {
      print multipart_start(-type=&gt;'text/plain'),
            "The current time is ",scalar(localtime),"\n";
      if ($_ &lt; 4) {
              print multipart_end;
      } else {
              print multipart_final;
      }
      sleep 1;
  }
  </code></pre>