Hello. The distinction between library (module) code and script code is important to my answer. I am now using scriptdist and a Vim (my Vi Improved editor) template to automate repetitive coding in my scripts. This is as much templating as I feel I need right now, and it is helping a lot.

If you wonder what is in the Vim template, it is the basic stuff like the perlstarter ("shebang") line and "use strict;" and so on. The scriptdist tool provides supporting files like a MANIFEST and all that (Makefile.PL notably) so that my naked scripts can become installable packages.

scriptdist is perl software by brian d foy and can be found on CPAN

  id/B/BD/BDFOY/

    Soren A / somian / perlspinr / Intrepid
P.S. Don't forget: I am expecting all the people the people who say I am posting to Perlmonks for the XP to automatically downvote this posting w/o explanation, thanks.

-- 
Cynicism is not "cool" or "hip" or "intelligent". It's like Saddam Hussein's piss mixed
with 004 grit and nitric acid. It's corrosive to everything it touches, destructive to
human endeavors, foul and disgusting. And ultimately will eat away the insides of the
person who nurtures it.

In reply to Re [0]: Perl Templates by Intrepid
in thread Perl Templates by ellem

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.