Tomster has asked for the wisdom of the Perl Monks concerning the following question:
#!/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'); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Redirect - Complete Perl Newbie
by gellyfish (Monsignor) on Feb 11, 2005 at 10:03 UTC | |
by Tomster (Initiate) on Feb 11, 2005 at 10:10 UTC | |
|
Re: Perl Redirect - Complete Perl Newbie
by Fang (Pilgrim) on Feb 11, 2005 at 10:15 UTC | |
by Tomster (Initiate) on Feb 11, 2005 at 11:32 UTC | |
by Fang (Pilgrim) on Feb 11, 2005 at 12:08 UTC | |
|
Re: Perl Redirect - Complete Perl Newbie
by samizdat (Vicar) on Feb 11, 2005 at 13:31 UTC | |
by Tomster (Initiate) on Feb 11, 2005 at 14:22 UTC | |
by samizdat (Vicar) on Feb 11, 2005 at 15:58 UTC |