[thelist] Perl equivalent ??

Joe Crawford jcrawford at avencom.com
Tue Apr 17 18:04:48 CDT 2001


CDitty wrote:
> Can someone tell me the perl equivalent and proper syntax to php's header
> ("Location: "); tag?  I have searched in my perl books under headers and
> redirect but can't find anything and perl.com is not responding for me.

In PHP
<?php Header("Location: http://www.yahoo.com/"); ?>

And In Perl
#!/usr/bin/perl
print "Location: http://www.yahoo.com/\n\n"

(note, those newlines are crucial)
	- Joe <http://artlung.com/>
--
Joe Crawford ||||||||||||||       mailto:jcrawford at avencom.com
||||||||||||||||||||||||             http://www.avencom.com
|||||||||||||||||||||||||||      Avencom: Set Your Sites Higher




More information about the thelist mailing list