cpan-purity is a fairly sweet perl hack I just wrote. Test how much of a the guts of a program comes from sweet, delicious CPAN, and how much is nasty perl code you wrote.
joey@dragon:~>./cpan-purity -- ./cpan-purity usage: cpan-purity [--verbose] [--mine=regexp] -- program args ** CPAN Prurity test results: 98.08% pure CPAN code. ** 7107 lines in 24 files were from CPAN, and 139 lines in 1 files wer +enot. joey@dragon:~>./cpan-purity -- perl -e 'use Coy; die "whups, gotta go. +."' ----- Two rabbits walk. A pair of lovers beside a pool. A trout in the dam. ----- Homer Simpson's commentary... whups, gotta go.. (Sayings of -e: line 1.) ** Looks like that was a perl one-liner.. ** CPAN Prurity test results: 99.98% pure CPAN code. ** 6028 lines in 16 files were from CPAN, and 1 lines in 0 files were +not. joey@dragon:~>./cpan-purity --mine=debconf -- dpkg-preconfigure dpkg-preconfigure: must specify some debs to preconfigure ** CPAN Prurity test results: 70.49% pure CPAN code. ** 6745 lines in 41 files were from CPAN, and 2823 lines in 20 files w +ere not.
Also useful with -v. Enjoy!

Edited by planetscape - removed pre tags, replaced with <code></code> tags


In reply to CPAN Purity tester by joey

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.