mitchreward has asked for the wisdom of the Perl Monks concerning the following question:
hi monks
I got a small perl-cgi script that has to run and redirect to another web page. But therefore I print the cgi headers an http response is already sent back, and a 2nd one get to a 500 error.
I've googled and searched on the Seekers of Perl Wisdom but can't find any way to do my redirect once executed
#!/usr/bin/perl use CGI qw(:standard); use strict; my $cgi = new CGI; print $cgi->header(); my @values = $cgi->param('option[]'); foreach (@values) { my $command=`rm -r /media/dde/video/$_`; print $command; } #$cgi->redirect( -location=>"train1.htm");
thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cgi redirect
by Anonymous Monk on Sep 29, 2014 at 20:57 UTC | |
|
Re: cgi redirect
by Anonymous Monk on Sep 29, 2014 at 21:07 UTC | |
by mitchreward (Acolyte) on Sep 30, 2014 at 09:05 UTC | |
by Anonymous Monk on Oct 01, 2014 at 01:34 UTC | |
by Anonymous Monk on Oct 01, 2014 at 21:08 UTC |