Journal(2005) | Blog(2006) | RandomLink | WhoAmI | LiveBookmark | HomePage

<<Previous: Share the URLs (January 2006)  >>Next: Guys, it's over

Perl Tips

Category: Basic   Keywords: tips

查找所用模块的路径

use Data::Dumper;
print $INC{'Data/Dumper.pm'};
C:/usr/lib/Data/Dumper.pm
use %INC;

制作 ppm 专用的 ppd 文件

E:\Fayland\CPAN> perl Build.PL
E:\Fayland\CPAN> perl Build
E:\Fayland\CPAN> perl Build test
E:\Fayland\CPAN> perl Build ppmdist
会升成一个类如 Lingua-Han-Stroke.ppd 和 PPM-Lingua-Han-Stroke-0.04.tar.gz 文件。
他人安装的话使用 ppm install Lingua-Han-Stroke.ppd 就可以了,把这两个文件给他传过去。
这对 Win32 下没有 nmake 的人有点用。

<<Previous: Share the URLs (January 2006)  >>Next: Guys, it's over

Options: +Del.icio.us

Related items Created on 2006-01-13 18:04:40, Last modified on 2006-01-13 18:16:30
Copyright 2004-2006 All Rights Reserved. Powered by Eplanet && Catalyst 5.62.