[thelist] Perl have something similar to php header()?

Anthony Baratta Anthony at Baratta.com
Mon Dec 18 16:25:53 CST 2000

At 02:35 PM 12/18/2000 -0600, you wrote:

>Can anyone tell me if Perl has something similar to PHP's header() 
>command?  I have looked in my perl book, but can't find 
>anything.  Basically, I am trying to get something like this for perl. - 
>header("Location: http://www.php.net");

print "Location: http://www.php.net\n\n";

Note the two returns, they are required. Also this can be the ONLY print 
statement you send to the browser.

Anthony Baratta
Keyboard Jockeys

More information about the thelist mailing list