[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] CAP::Forward and CA::Dispatch


> 2) You could create a new instance of the other application and run the
> other mode.
>
>   my $other_app = Other::App->new( QUERY => $self->query );
>   return $other_app->run_mode();

You can also rebless the $self into the other class:

    use Some::Other::Module;
    bless $self, 'Some::Other::Module';
    $self->other_run_mode;

This actually works.  Seems somewhat horrible though.


Michael


---
Michael Graham <suppressed>


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.