I gotta say by the looks of Exporter-VA-1.2.2, I'd never consider testing it, much less installing it.
First, your program is pure perl, and it should follow the standard way for installing perl modules, which is not double click, which is not ./Makefile.PL, it is perl Makefile.PL, make, make test, make install.
Here's how you should think about changing it (dir structure first).
E:\NEW\EXPORTER-VA-1.2.2
| Exporter-VA-Convert.perl
| Makefile.PL
| MANIFEST.txt
| README.txt
| VA.pm
|
\---t
00-basic.t
M1.pm
M2.pm
M3.pm
I moved all the M*.pm files to the 't' directory, and I renamed test1.perl to 00-basic.t (which i also moved to 't'), and prepended use lib 't'; to it.
I also renamed Exporter-VA.pm to VA.pm. Everything went fine, except your test file, well, ins't a perl test file (you don't have a 1..numberOfTests line). You should read this perl.com article on testing.
The simple way of testing, is to have a single test.pl in the same directory as the Makefile.PL, like so
E:\NEW\EXPORTER-VA-1.2.2
| Exporter-VA-Convert.perl
| Makefile.PL
| MANIFEST.txt
| README.txt
| test.pl
| VA.pm
|
\---t
M1.pm
M2.pm
M3.pm
Here's the Makefile.PL
This is what `h2xs -AX -n Exporter::VA' basically gives you.use ExtUtils::MakeMaker; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. WriteMakefile( 'NAME' => 'Exporter::VA', 'VERSION_FROM' => 'VA.pm', # finds $VERSION 'EXE_FILES' => [qw[ Exporter-VA-Convert.perl ]], 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1 ($] >= 5.005 ? ## Add these new keywords supported since 5.005 (ABSTRACT_FROM => 'VA.pm', # retrieve abstract from module AUTHOR => 'A. U. Thor <a.u.thor@a.galaxy.far.far.away>') : +()), );
Writing Exporter/VA/VA.pm Writing Exporter/VA/Makefile.PL Writing Exporter/VA/README Writing Exporter/VA/test.pl Writing Exporter/VA/Changes Writing Exporter/VA/MANIFESTNotice where VA.pm is? If it was Exporter-VA.pm, MakeMaker would not magically rename it to Exporter\VA.pm
|
MJD says you can't just make shit up and expect the computer to know what you mean, retardo! ** The Third rule of perl club is a statement of fact: pod is sexy. |
In reply to Re: Makefile.PL even weirder on Windows
by PodMaster
in thread Makefile.PL even weirder on Windows
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |