Home | Mirror | Search |
目錄
How do I install XML::Simple?
On Unix systems, try:
perl -MCPAN -e 'install XML::Simple'
If that doesn't work, download the latest distribution from ftp://ftp.cpan.org/pub/CPAN/authors/id/G/GR/GRANTM , unpack it and run these commands:
perl Makefile.PL make make test make install
On Win32, if you have a recent build of ActiveState Perl (618 or better) try this command:
ppm install XML::Simple
過程 39.1. Module::Build step by setp
Build.PL
$ cat Build.PL use Module::Build; Module::Build->new ( module_name => 'My::Module', license => 'perl', dist_version => '1.0', )->create_build_script;
perl Build.PL
$ perl Build.PL Checking prerequisites... Looks good Creating new 'Build' script for 'My-Module' version '1.0'
Build
$ ./Build Copying lib/My/Module.pm -> blib/lib/My/Module.pm
Build test
$ ./Build test t/hello....ok All tests successful. Files=1, Tests=1, 0 wallclock secs ( 0.02 cusr + 0.01 csys = 0.03 CPU)
--test_files
$ ./Build test --test_files t/hello.t