Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl
Why load two modules to call methods on the same object?
 

Index | Next | Previous | View Flat


himanshu.garg at gmail

Sep 16, 2008, 8:00 PM


Views: 399
Permalink
Why load two modules to call methods on the same object?

For the following to work I must load Apache2RequestRec as well as
Apache2::RequestIO.

package GS;
use Apache2::Const -compile => ':common';
use Apache2::RequestRec ();# $r->content_type
use Apache2::RequestIO (); # $r->print

sub handler {
my $r = shift;
print $r->content_type('text/plain');
print $r->print("hello, world");
return Apache2::Const::OK;
}

1;

There must be a reason we have it this way. Any clues?

Thanks,
Himanshu

Subject User Time
Why load two modules to call methods on the same object? himanshu.garg at gmail Sep 16, 2008, 8:00 PM
    Re: Why load two modules to call methods on the same object? jdrago_999 at yahoo Sep 16, 2008, 10:32 PM
    Re: Why load two modules to call methods on the same object? perrin at elem Sep 17, 2008, 5:57 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.