in reply to Re: Perl Redirect - Complete Perl Newbie
in thread Perl Redirect - Complete Perl Newbie

Thanks for the advice and sorry for the lack of information. I'm getting a HTTP 500 error...?

Adding the colon didn't seem to make any difference.

This is the full page code:
#!/usr/bin/perl use CGI ':standard'; $shop = param('shop'); if ($shop eq 'rg') { print redirect('https://www.planetdistribution.co.uk/store/index.php?c +Path=6'); }elsif ($shop eq 'ps') { print redirect('https://www.planetdistribution.co.uk/store/index.php?c +Path=1'); }elsif ($shop eq 'sk') { print redirect('https://www.planetdistribution.co.uk/store/index.php?c +Path=19'); }elsif ($shop eq 'smm') { print redirect('https://www.planetdistribution.co.uk/store/index.php?c +Path=9'); }else{ print redirect('https://www.planetdistribution.co.uk/store'); }