Hello Monks,

I'm using Devel::Cover to get statement coverage for my code and I have the following issue:

In system ONE I inserted 'use Devel::Cover' to all of my scripts, but in system TWO I set '-MDevel::Cover=-db....' in the environment variable PERL5OPT. As result of this I have two databases, say db_one and db_two; the issue is that if myscript.pl got executed and covered in both systems, when I merge the databases, one of the two entries gets deleted by cover because the md5 checksum differs from the file stored in the file system (due to the fact that myscript.pl has one extra line of source code in system ONE that it is not present in system TWO).

How can I remove/add that extra 'use Devel::Cover' line to one of the two databases, so cover can merge the coverage data for myscript.pl into one single entry in the database? I need this because coverage for myscript.pl is not the same in system ONE than the coverage in system TWO, and I need the combined coverage number.

Thanks!

In reply to Devel::Cover merging two versions of the same file. by luisneto

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.