GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PERL::METRICS::LITE::ANALYSIS::UTIL (3)

.ds Aq ’

NAME

Perl::Metrics::Lite::Analysis::Util - Utility class for PPI::Document operation

CONTENTS

STATIC PACKAGE SUBROUTINES

Utility subs used internally, but no harm in exposing them for now. Call these with a fully-qualified package name, e.g.



  Perl::Metrics::Lite::Analysis::Util::is_ref($thing,ARRAY)



    get_packages

Arrayref of unique PPI::Statement::Package found in the PPI document.

    get_node_length

Takes a <B>PPIB> node and returns a count of the newlines it contains. <B>PPIB> normalizes line endings to newlines so CR/LF, CR and LF all come out the same. The line counts reported by the various methods in this class all <B>excludeB> blank lines, comment lines and pod (the <B>PPIB> document is pruned before counting.)

    is_ref

Takes a thing and a type. Returns true is thing is a reference of type type, otherwise returns false.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PERL::METRICS::LITE::ANALYSIS::UTIL (3) 2012-03-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.