title: Status: 302 Found Location:
body: <p>Hello i want to redirect at another location after delete data from database. But it shows me the following error:Status: 302 Found Location:</p>
  
  <pre><code>my $q= new CGI;
  print $q-&gt;header ('Text/html');
  
  print $q-&gt; start_html(
     -title   =&gt; "",
  
  );
  my $db = "peroples";
  my $user = "root"; 
  my $pass = "";
  my $host="127.0.0.1";
  my $dbh = DBI-&gt;connect("DBI:mysql:$db:$host", $user, $pass);
  my $action_delete = $q-&gt;param('delete');
  my $action_update = $q-&gt;param('update');
  
  
  if($action_delete + 0 &gt; 0) {
          my $row_id = $action_delete + 0;
          my $sqlQuery  = $dbh-&gt;prepare("DELETE FROM peoples WHERE ID = $row_id");
          $sqlQuery-&gt;execute;    
   print $q-&gt;redirect(-uri =&gt; 'http://localhost/cgi-bin/peoples.pl',);
  </code></pre>