[thelist] Perl equivalent ??

Denis, David DDenis at inlumen.com
Tue Apr 17 18:40:43 CDT 2001


or if you're using cgi.pm:

print $q->redirect('http://www.example.org/');
 
Dave

> Thanks.  That'll do it.
> 
> Chris
> 
> At 06:00 PM 4/17/2001, you wrote:
> >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/>
> >--




More information about the thelist mailing list