cpan

What is the correct way to add a utility module to a CPAN distribution?

I would like to factor out some of the stuff in Crypt::SSLeay's Makefile.PL into a couple of separate classes. These classes would only be used by Makefile.PL. As such, I do want them not to be indexed by the PAUSE indexer not to be installed as part of the module. Should I just put them in inc the way Module::Install does? What el...

Where can I find a concise guide to converting an existing CPAN module to use Dist::Zilla?

I have read, at various times, both the documentation and a number of blog posts on Dist::Zilla. I have never felt confidence in my understanding of it. In response to another question, @Ether raised the possibility of converting Crypt-SSLeay to use Dist::Zilla. So, where can I find a concise guide showing me how to convert an existing...

How can I generate URL slugs in Perl?

Web frameworks such as Rails and Django has built-in support for "slugs" which are used to generate readable and SEO-friendly URLs: Slugs in Rails Slugs in Django A slug string typically contains only of the characters a-z, 0-9 and - and can hence be written without URL-escaping (think "foo%20bar"). I'm looking for a Perl slug funct...

How can I convert a number to its English form in Perl?

I need a Perl script which takes numbers as input example 222 and it should output as two hundred twenty two. ...

What is the purpose of Parse::CPAN::Authors?

What is the purpose of the Parse::CPAN::Authors module? use Parse::CPAN::Authors; # must have downloaded my $p = Parse::CPAN::Authors->new("01mailrc.txt.gz"); # either a filename as above or pass in the contents of the file my $p = Parse::CPAN::Authors->new($mailrc_contents); my $author = $p->author('LBROCARD'); # $a is ...

Remove Perl modules from CPAN on Mac

As far as I know it is required to run CPAN with sudo on Mac sudo perl -MCPAN -e shell to install new modules. Theoretically, a module can be removed by deleting it from the Perl folders. My question is: Where are Perl modules put when installed from CPAN with 'sudo' and without 'sudo'? I installed BioPerl both ways and it seemed to ...