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