Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: CGI::Application and server side request forwarding

by cees (Curate)
on Aug 05, 2005 at 23:48 UTC ( [id://481402]=note: print w/replies, xml ) Need Help??


in reply to CGI::Application and server side request forwarding

There is no clean way of doing an internal redirect to another application module like that. I would think that if these two runmodes are related enough to share the same parameters, then perhaps they should be in the same modules.

If you do not want to put them in the same module, you may be able to solve the problem with inheritance. Make module Foo inherit from module Bar, and then Foo will automatically have access to both runmode 'mode2' and 'mode1', so you can do a simple internal redirect from mode1 to mode2 using 'return $self->mode2()'.

  • Comment on Re: CGI::Application and server side request forwarding

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://481402]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-19 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found