On Wed, 26 Sep 2007 16:38:03 +0800 "lists user" <[EMAIL PROTECTED]> wrote:
> Hello, > > I'm reading the documents about modperl and C API for Apache.I have > several questions again,thanks for any helps in advance. > > 1) what're the advantage of C modules than modperl modules?and what're > the advantage of modperl modules than C's? > > 2) Where in startup.pl,I wrote, > > #startup.pl > use MIME::Base64 (); > > then in Mymodule.pm,I wrote, > > #Mymodule.pm > use MIME::Base64 qw/encode_base64/; > > ------ > from the documents I know that in Mymodule MIME::Base64 won't be > loaded again since it's already loaded by startup.pl (modperl checks > the %INC and know it's already there). > But,why the function of encode_base64() can be successfully loaded > since the loading action doesn't happen in Mymodule?As you see,in > startup.pl I don't load that function encode_base64(). Everyone else has pretty much answered your question here ( the difference between sharing the module and the import ), but you will probably also want to consider adding: use Mymodule; to your startup.pl so that your own code is shared among your Apache children. ------------------------------------------------------- Frank Wiles, Revolution Systems, LLC. Personal : [EMAIL PROTECTED] http://www.wiles.org Work : [EMAIL PROTECTED] http://www.revsys.com