Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Create and upload your first Perl module to CPAN


Published on

Create your first Perl module and upload it to CPAN.

Published in: Technology, Art & Photos

Create and upload your first Perl module to CPAN

  1. 1. Uploading Your First Module to CPAN brian d foy The Perl Review YAPC::EU 2011, Rīga
  2. 2. PAUSE• You upload through PAUSE• The Perl Authors Upload Server• This is a stepping stone to CPAN
  3. 3. Indexing• PAUSE indexes and creates data files for the CPAN clients• Only the latest distributions get into it• People have permissions for namespaces
  4. 4. Get a PAUSE Account
  5. 5. Choose amodule name ACTION=pause_namingmodules
  6. 6. Permissions• You can upload a namespace someone else already uses• But PAUSE will ignore it• A good name goes a long way• We have general advice on names ACTION=pause_namingmodules
  7. 7. Create the distro• There are modules that can help you • Module::Starter • Distribution::Cooker • h2xs (comes with Perl) • many others
  8. 8. 25,000 Examples• Look at other distributions to get examples• See how other people do it• Ask them questions
  9. 9. Github
  10. 10. Upload
  11. 11. Upload early & often• You don’t have to be perfect, or even good• Other people can help as soon as possible• CPAN Testers can send you feedback
  12. 12. CPAN Search
  13. 13. Lots more• PAUSE lets you add co-maintainers• You can take over existing modules• You can help with other people’s modules
  14. 14. Publicize your module• Don’t be shy• Write something on• Tweet it, plus it, facebook it• Give a lightning talk
  15. 15. Getting help• For help with PAUSE issues, write to• One of the PAUSE volunteer admins can help you• For general module questions, you might try• For CPAN Search issues, try