王朝网络
分享
 
 
 

Perl/TkFAQ-15.如何自己写新模块?

王朝perl·作者佚名  2008-05-18
宽屏版  字体: |||超大  

原文:

15. How do I write new modules?

You might want to start by poking around your perl/Tk build directory. Is there something there that already does what you want? Is there something that is reasonably close - but only requires minor modification?

Next go through the various perl documents - including the FAQ as well as the various relevant man pages: perlmod(1), perlobj(1), perlbot(1), (and please don't forget: perlpod(1)!)

Post your idea to comp.lang.perl.tk and discuss it with others - there might very well be someone working on an approach already. A clear explanation of all the stuff that gets put into a module was posted to the mailing list and can be found in the archive at: http://sun20.ccd.bnl.gov/~ptk/archive/ptk.1995.10/0012.html

Also, be sure to check out a recent version of the official Module List that Tim Bunce mailto:Tim.Bunce@ig.co.uk and Andreas Koenig mailto:a.koenig@franz.ww.TU-Berlin.DE maintain and post to comp.lang.perl.announce periodically. The list is also available at any CPAN ftp site as well as: http://www.perl.com/CPAN/modules/00modlist.long.html ftp://rtfm.mit.edu/pub/usenet/news.answers/perl-faq/module-list ftp://ftp.demon.co.uk/pub/perl/db/mod/module-list.txt ftp://ftp.wpi.edu/perl5/Modules/module_list.txt

Finally ready to ship? Small (perl/Tk) modules have been posted directly to comp.lang.perl.tk. Big modules may require ftp distribution (see upload info at one of the CPAN sites) then make your announcement to comp.lang.perl.tk and possibly to comp.lang.perl.announce.

译文:

15. 如何自己写新模块?

你也许会想要自己扩展Perl/Tk的安装目录,但是会不会已经有了某些(脚本或模块)本来就可以实现你所希望的功能,或者很接近你的需求,只需要很小的改动而已呢?

所以,你应该先浏览一下Perl的文档,包括perlFAQ,以及各种相关的手册页:perlmod,perlobj,perlbot和perlpod。

然后,你可以把你的想法贴到comp.lang.perl.tk新闻组里,和其它人一起讨论一下,而且也许碰巧已经有某个人正在做类似的工作了。在邮件列表中有一个清楚的列表和解释,指出了所有曾经制作模块的情况,这可以在下面的网页中看到:

http://sun20.ccd.bnl.gov/~ptk/archive/ptk.1995.10/0012.html

当然,也不要忘了去检查一下最近的官方模块列表,它们是由Tim Bunce和Andreas Koenig负责维护,并定期的贴在comp.lang.perl.announce新闻组里。当然,这个列表也可以在各个CPAN的FTP站点上找到:

http://www.perl.com/CPAN/modules/00modlist.long.html

ftp://rtfm.mit.edu/pub/usenet/news.answers/perl-faq/module-list

ftp://ftp.demon.co.uk/pub/perl/db/mod/module-list.txt

ftp://ftp.wpi.edu/perl5/Modules/module_list.txt

最后,你是否真的要开始做了呢?其实有些小的Perl/Tk模块已经被直接贴在了comp.lang.perl.tk新闻组里了,而一些较大的模块可能需要使用FTP方式发布(请参阅CPAN站点上的上传要求)。然后,你还可以在comp.lang.perl.tk或也许是comp.lang.perl.announce新闻组中宣布一下。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
>>返回首页<<
推荐阅读
 
 
频道精选
 
静静地坐在废墟上,四周的荒凉一望无际,忽然觉得,凄凉也很美
© 2005- 王朝网络 版权所有