zhaodj wrote: > 大家好。初次接触模块,想请教一个模块命名的问题,以DBI::ProfileDumper:: > Apache为例。 > > 在CPAN上我查到三个模块:DBI,DBI::ProfileDumper,DBI::ProfileDumper:: > Apache。现在我弄不明白这三个模块间的关系,从命名上看,我觉得这三个模块间 > 存在“继承关系”,比如,在编写DBI::ProfileDumper时应当是引用了DBI模块的方 > 法或者属性,是这样的么?我觉得DBI::ProfileDumper::Apache这样的命名方式应 > 当是有要求的,应当符合某种条件和关系才能这样命名,敬请达人给出详细的解释 > 或者参考信息。谢谢! >
你说的这三个模块同属于 DBI 包, 见 http://search.cpan.org/~timb/DBI-1.609/ 上面 url 里对模块的介绍如下 DBI::ProfileDumper profile DBI usage and output data to a file DBI::ProfileDumper::Apache capture DBI profiling data from Apache/mod_perl 至于是否继承,你可以从看代码上了解到.. Qiang --~--~---------~--~----~------------~-------~--~----~ 您收到此信息是由于您订阅了 Google 论坛“PerlChina Mongers 讨论组”论坛。 要在此论坛发帖,请发电子邮件到 [email protected] 要退订此论坛,请发邮件至 [email protected] 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛 -~----------~----~----~----~------~----~------~--~---
