When I ran your code, using Devel::Cover, I got the following on Devel::Cover 0.40, Perl 5.8.1 rc3, on OS X 10.3.5. What do you see?

% perl -MDevel::Cover 1.t Devel::Cover 0.40: Collecting coverage data for branch, condition, sta +tement, subroutine and time. Pod coverage is unvailable. Please install Pod::Coverage from CPAN. Selecting packages matching: Ignoring packages matching: Ignoring packages in: . /Library/Perl /Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl /Network/Library/Perl/5.8.1 /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /System/Library/Perl/5.8.1/darwin-thread-multi-2level /sw/lib/perl5 1..4 ok 1 - use abcd; ok 2 ok 3 ok 4 Devel::Cover: Writing coverage database to /Users/paul/monks/cover_db/ +runs/1092444838.2071.64541 ----------------------------------- ------ ------ ------ ------ ------ + ------ File stmt branch cond sub time + total ----------------------------------- ------ ------ ------ ------ ------ + ------ 1.t 100.0 n/a n/a n/a 90.9 + 100.0 abcd.pm 100.0 100.0 n/a 100.0 100.0 + 100.0 Total 100.0 100.0 n/a 100.0 100.0 + 100.0 ----------------------------------- ------ ------ ------ ------ ------ + ------



pbeckingham - typist, perishable vertebrate.

In reply to Re: Devel::Cover not finding a test? by pbeckingham
in thread Devel::Cover not finding a test? by dragonchild

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.