in reply to Re: Re: Using Perl To Redirect To Other Pages
in thread Using Perl To Redirect To Other Pages

I agree, Cody. Why do people submit solutions that require others to load the submitters HUGE (favorite) Library of overcoded functions when there is such simple solutions?
  • Comment on Re^3: Using Perl To Redirect To Other Pages

Replies are listed 'Best First'.
Re^4: Using Perl To Redirect To Other Pages
by Your Mother (Archbishop) on Nov 19, 2008 at 21:35 UTC

    If the question asked for how to use HTTP to redirect, I'd probably think to give the print "Location..." answer but when asked for cgi, even in lowercase, we do tend to think of CGI.pm. Plus, though the print "Loc..." works, it is short on headers. It's fine to do it yourself but doing it right is usually easier through an interface. Even one that is less than ideal.

    ~>perl -MCGI -le 'print CGI::redirect("http://perlmonks.org")' Status: 302 Found Location: http://perlmonks.org
Re^4: Using Perl To Redirect To Other Pages
by Anonymous Monk on Nov 20, 2008 at 08:21 UTC
    Because perlmonks isn't HTTP monks; because you didn't want to learn HTTP; because HUGE (favorite) Library of overcoded functions keeps you from having to learn HTTP.