I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2011-01-19 13:17:42.776926-08 by ajwood
Packaging a Collection of Perl Scripts
Hi, I have a collection of Perl script and a few data files they rely on that I'd like to put in a CPAN-style package.
1. It's not really structured like a proper module. They're related scripts, but it's really just a collection of *.pl files in a /bin directory, and some *.xml files in a /share directory. Does it still make sense to bundle these in a CPAN-style package?
Here is what I've got for a Makefile.PL:
use strict; use warnings; use ExtUtils::MakeMaker; my @exe_files = glob("bin/*"); WriteMakefile( NAME => 'MyPackage', DISTNAME => 'MyPackage', AUTHOR => q{Andrew Wood <amherst.andrew@gmail.com>}, VERSION => '0.1', ABSTRACT => 'My Perl Collection', LICENSE => 'perl', EXE_FILES => \@exe_files, INSTALLBIN => 'bin', PL_FILES => {}, PREREQ_PM => {}, dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, clean => { FILES => 'MyPackage-*' }, );

This, of course, doesn't work. I do get the executables copied over to a bin directory (though during the build they're in /script). I've been going through tutorials and having no luck. Everything seems to assume I'm going to want a lib/MyModule.pm, so I guess what I'm doing isn't standard. Can someone give me a few tips, things to look at, or point me at your favourite tutorial for this sort of thing? Thanks, Andrew
Direct Responses: 13146 | Write a response