What should be the easiest thing in the world is not working for some reason. I've constructed the script (shown in its entirety) below so that an end-user can run a script that is usually run as a cron job. Note that the script this script runs produces no output (ran from the command line).
The only thing apache is telling me in it's logs is "Premature end of script headers" even though the headers appear fine (as they should, not hand-rolling them myself).
my $q = new CGI;
print $q->redirect(-location => "http://redirected_url");
system 'perl /path/to/script.pl inputfile.txt';
output at the command line:
Status: 302 Moved
---- there is a blank line here, as there should be ---
any ideas what's wrong?