http://www.perlmonks.org?node_id=1004310


in reply to Is there any specific convention/best practices for perl module creation?

Hi tomishere,
..If there is any good links..
Links you say?
Please check the followings:
perlstyle, perlmod then
See perlmodlib for general style issues related to building Perl modules and classes, as well as descriptions of the standard library and CPAN,
Exporter for how Perl's standard import/export mechanism works,
perlootut and perltooc for an in-depth tutorial on creating classes,
perlobj for a hard-core reference document on objects,
perlsub for an explanation of functions and scoping, and
perlxstut and perlguts for more information on writing extension modules.

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
  • Comment on Re: Is there any specific convention/best practices for perl module creation?

Replies are listed 'Best First'.
Re^2: Is there any specific convention/best practices for perl module creation?
by davido (Cardinal) on Nov 17, 2012 at 18:08 UTC

    Unless my eyes are deceiving me, I don't see perlmodstyle in your list, which is a very good resource.

    Additionally, if you intend to upload to CPAN, I recommend reading the CPAN Author's FAQ, and About PAUSE (even if you're not uploading to CPAN, there's useful advice).

    Once you're confident enough in your own good judgement to not be blindly influenced by the book, Perl Best Practices (O'Reilly) is useful. But most people seem to ignore the instructions early in the book telling authors that these guidelines are more intended to "get you thinking" than to "tell you what to do." In practice, it seems the opposite happens; the "best practices" are trotted out as a crutch to excuse coders from thinking for themselves. With that caveat, I still think it can be helpful to read through it and try to understand what issues are being addressed, and where the suggestions are (and are not) appropriate.


    Dave

      ++ Dave. Agreed with your point on Perl Best Practices Book.
      However, I suppose the OP wanted a pointer or references to Perl documentations that could help (in writing or) using perl modules correctly.
      Nice inclusion of perlmodstyle.
      Thanks.

      If you tell me, I'll forget.
      If you show me, I'll remember.
      if you involve me, I'll understand.
      --- Author unknown to me