I suspect it'll be pretty much as you are already - the major difference being in the actual usage.
  1. Set up your environment as hinted earlier i.e. as follows:
    export PERL5LIB=/opt/scripts/development/lib;/opt/scripts/stable/lib export PATH=/opt/scripts/development/lib;/opt/scripts/stable/lib:$PATH
  2. Check out the stable code into /opt/scripts/stable/lib
  3. Check out development code (into /opt/scripts/development/lib) when and only when you need to fix/enhance code
  4. In main.pl, just use module; as normal - perl will pick up the development version in preference to the stable version (because of the order in which you declared the libraries in PERL5LIB).
  5. If main.pl is to be changed, merely check out the development version - simply entering main.pl on the command line, the shell willpick up the development version.
  6. Once development work is complete and the file checked in, remove the file from the development library.
Having said that, your way of working is unusual in as much as it is more usual to maintain only one copy of a file within the version control system - you have multiple/dual copies of files knocking about disproportionately increasing the maintenance overhead.

I'm guessing each file is located within CVS under opt/scripts/development/lib/name.pm or opt/scripts/stable/lib/name.pm ... or maybe even development/lib/name.pm or stable/lib/name.pm.

Far more usual would be to maintain just one copy - located under either lib/name.pm, name.pm, lib/module/name.pm or module/name.pm (the latter 2 catering for CPAN compatible directory structure) - the target root directory being set as appropriate when checking the file out (and the file being removed from the development area on check-in).

A user level that continues to overstate my experience :-))

In reply to Re^3: Perl module management by Bloodnok
in thread Perl module management by andrewtaz

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.