I'm not speaking from experience here, so "add salt to suit your taste"...

Based on your vague description, it sounds like the plan is for the new-generation parser to have the same API as the old one, so there is an existing code base using the old parser that (theoretically) shouldn't change at all as you change the parser.

If the old parser modules are in some specific directory, and the new replacement modules are in some other directory, you could try doing two runs over a given range of input data, and just twiddle $ENV{PERL5LIB} in order to control which set of modules is loaded. (And of course, you'll want the outputs stored separately as well.)

If the old modules are in the same directory as the code base that uses them (along with other modules that aren't being updated, which means you can't take "." out of @INC), you should be able to relocate the old modules to some other directory, and again twiddle $ENV{PERL5LIB} to run your contrasting tests.

(It's not something I've tried myself, but it seems plausible...)


In reply to Re: Clean code transition - how? by graff
in thread Clean code transition - how? by shemp

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.