h2xs is kind of long in the tooth. Personally, I use the module-starter program (installed with Module::Starter) which will get everything framed out nicely for you. I'm sure there are other options on CPAN too.<br><br>
Anyhoo, this particular error is caused by not having all of the POD in place. Make sure you have a NAME section in there.<br><br>Cheers,<br>Joshua<br><br><div class="gmail_quote">On Mon, Mar 9, 2009 at 11:26 PM, Richard Fobes <span dir="ltr"><<a href="mailto:prog@solutionscreative.com">prog@solutionscreative.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"><div class="im">
Joshua Keroes wrote:
<blockquote cite="http://midc67b68200903091718k3539df46u31a092b0fcad2e36@mail.gmail.com" type="cite">In your module's project directory:<br>
<br>
mkdir -p lib/Language<br>
mv Language-Dashrep.pm lib/Language/Dashrep.pm<br>
</blockquote>
</div><font face="Verdana">Thank you, Joshua!<br>
<br>
</font><font face="Verdana">Based on your recommendation </font><font face="Verdana">I moved the file from lib/Language-Dashrep.pm to
lib/Language/Dashrep.pm.<br>
<br>
</font><font face="Verdana">Alas, now </font><font face="Verdana">the
"perl Makefile.PL" command generates the following warning:<br>
</font>
<blockquote><font face="Verdana">WARNING: Setting ABSTRACT via file
'lib/Language/Dashrep.pm' failed at
/usr/lib/perl5/5.8.8/ExtUtils/MakeMaker.pm line 615</font><font face="Verdana"><br>
Writing Makefile for Language-Dashrep</font><br>
</blockquote>
<font face="Verdana">How do I fix this? (Apparently it prefers the
Language-Dashrep.pm file naming convention.)<br>
<br>
Now there's a new problem. I ignored that warning and ran the "make"
and "make test" commands. This time it found the file. Yay! However,
when the test file encounters the following line ...<br>
<br>
BEGIN { use_ok('Language::Dashrep'); };<br>
<br>
... it fails with an error. It can't find Language::Dashrep. That
makes sense because the installation isn't yet complete! (The "chicken
and the egg" problem.)<br>
<br>
What am I overlooking? Did the </font><font face="Verdana">h2xs tool
create the wrong code? What should the Language-Dashrep.t (test)
file's "BEGIN" line look like?</font><br>
<font face="Verdana"><br>
</font><font face="Verdana">Again, in advance, thanks for any help.<br>
<br>
Richard Fobes<br>
</font><br>
<br>
</div>
</blockquote></div><br>