Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Re: Re: CGI::Application design strategy

by larsen (Parson)
on Mar 02, 2004 at 16:12 UTC ( #333292=note: print w/replies, xml ) Need Help??

in reply to Re: Re: CGI::Application design strategy
in thread CGI::Application design strategy

The answer is yes. My actual code is pretty similar to yours.
sub build_redirect { my ($self, $form, $script) = @_; $form ||= {}; + my $q = $self->query; my $uri = URI->new( $script || $q->script_name ); + $uri->query_form(%$form); + return $uri->as_string; } sub redirect { my $self = shift; + $self->header_add( -uri => $self->build_redirect( @_ ) ); + $self->header_type('redirect'); + }

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://333292]
[marinersk]: I love that Chancellor Merkel has even referenced the satire. That woman is amazing.
[marinersk]: It must be nice to have a national leader you can be proud of.
[choroba]: Has Jára Cimrman ever been to Bielefeld?
[marinersk]: choroba LOL wow, y'all are on a roll today.
[Eily]: nice post count marinersk

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2017-05-29 15:05 GMT
Find Nodes?
    Voting Booth?