Donnie you haven't shown us any of your code yet, but perhaps you're getting the "Internal Server Error" because the script you're redirecting to doesn't print out the required http header itself?
For example:
#!/usr/local/bin/perl -w
##### file1.cgi
use CGI;
use strict;
my $q = new CGI;
print $q->redirect( -uri => 'file2.cgi' );
exit;
##### cut here #####
#!/usr/local/bin/perl -w
##### file2.cgi
print "foo";
exit;
will cause an internal server error because we're not printing out the required HTTP header. Our webserver doesn't care what script prints out that header, but it does expect that it'll be printed out before anything else is. If we change file2.cgi to be:
#!/usr/local/bin/perl -w
##### file2.cgi
use CGI;
use strict;
my $cgi = new CGI;
print $cgi->header();
print "foo";
exit;
we don't get any error.
Perhaps that is something you need to check.
jarich
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.