Thread
:
Optimized redirection (cgi/perl)
View Single Post
07-24-2002, 05:04 PM
NetRodent
Confirmed User
Join Date: Jan 2002
Location: In the walls of your house.
Posts: 3,985
Try using the following code...
Code:
#!/usr/bin/perl -wT $| = 1; print "Location:
http://www.nba.com/\n\n
"; sleep(15); exit;
The $| variable controls how perl buffers output. Setting
it to 1 tells it not to buffer anything but output immediately.
In general its a bad idea not to buffer but this will redirect
immediately.
NetRodent
View Public Profile
Find More Posts by NetRodent