in reply to Trying to redirect...

for the location thing to work u have to print out Location: http://www.blahblah.com here's a simple script to redirect a visitor to pakipunch.com
#!/usr/bin/perl print "Location: http://www.pakipunch.com\n\n"; exit 14;
-- or ---
#!/usr/bin/perl $href="http://www.pakipunch.com"; print "Location: $href\n\n"; exit 14;
------------
Ahmad Mushtaq
ahmadpak@hotmail.com
http://coolperl.da.ru

Replies are listed 'Best First'.
Re: Re: Trying to redirect...
by Beatnik (Parson) on Mar 18, 2001 at 16:48 UTC
    using exit() at random places might screw up mod_perl a bit. Since perl will exit anyway, I see no use for it in this particular case.

    Greetz
    Beatnik
    ... Quidquid perl dictum sit, altum viditur.