Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Test/ Code Ratio

by adamk (Chaplain)
on Jan 28, 2005 at 10:08 UTC ( #425892=note: print w/replies, xml ) Need Help??


in reply to Re^2: Test/ Code Ratio
in thread Test/ Code Ratio

Eep, sorry.

PPI is (originally) short for Parse::Perl::Isolated. It parses perl as a Document, without using perl itself.

The "Signficicant Tokens" metric ignores lines, variable name lengths, string length, POD and just goes on the complexity of the code itself, and can be found using something like the following.

use PPI; # Load a perl document my $Document = PPI::Document->load( 'mycode.pl' ); my $significant = grep { ! $_->significant } $Document->tokens;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://425892]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2016-12-06 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (112 votes). Check out past polls.