[Pdx-pm] Help with Dashrep module

Joshua Keroes jkeroes at gmail.com
Tue Mar 10 01:07:14 PDT 2009

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.

Anyhoo, this particular error is caused by not having all of the POD in
place. Make sure you have a NAME section in there.


On Mon, Mar 9, 2009 at 11:26 PM, Richard Fobes
<prog at solutionscreative.com>wrote:

>  Joshua Keroes wrote:
> In your module's project directory:
> mkdir -p lib/Language
> mv Language-Dashrep.pm lib/Language/Dashrep.pm
> Thank you, Joshua!
> Based on your recommendation I moved the file from lib/Language-Dashrep.pm
> to lib/Language/Dashrep.pm.
> Alas, now the "perl Makefile.PL" command generates the following warning:
> WARNING: Setting ABSTRACT via file 'lib/Language/Dashrep.pm' failed at
> /usr/lib/perl5/5.8.8/ExtUtils/MakeMaker.pm line 615
> Writing Makefile for Language-Dashrep
> How do I fix this?  (Apparently it prefers the Language-Dashrep.pm file
> naming convention.)
> 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 ...
>     BEGIN { use_ok('Language::Dashrep'); };
> ... 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.)
> What am I overlooking?  Did the h2xs tool create the wrong code?  What
> should the Language-Dashrep.t (test) file's "BEGIN" line look like?
> Again, in advance, thanks for any help.
> Richard Fobes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/pdx-pm-list/attachments/20090310/f1a8120d/attachment.html>

More information about the Pdx-pm-list mailing list