title: How to redirect a page in perl script
body: <p>I am fairly new to Perl.</p>
  
  <p>I have a form that reads into a script.pl and does the validation check and etc. </p>
  
  <p>How can I make it so once its done showing the validation, loops back to the home page after a few seconds automatically? </p>
  
  <p>I tried using the following and it didn't work:</p>
  
  <pre><code>use strict;
  use warnings;
  my $url = "http://google.com";
  print "Location: $url\n\n";
  </code></pre>
  
  <p>An Example of HTML for this would be: <code>&lt;META HTTP-EQUIV="REFRESH" CONTENT="10;URL=index.htm"&gt;</code></p>
  
  <hr>
  
  <p>here is what i have: </p>
  
  <pre><code>#!/usr/bin/perl 
  use strict; 
  use warnings; 
  my $url = "google.com";; 
  print "Location: $url\n\n"; 
  print "Content-type: text/html\n\n"; 
  %form=&amp;parse_form(); 
  
  etc....etc...
  </code></pre>