Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Perl::Metrics::Lite::AUsersContributed PPerl::Metrics::Lite::Analysis::Util(3)

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

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 PPI node	and returns a count of the newlines it contains. PPI
       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 exclude blank lines,	comment	lines and pod (the PPI 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.

perl v5.32.1			  2012-0Perl::Metrics::Lite::Analysis::Util(3)

NAME | STATIC PACKAGE SUBROUTINES

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Perl::Metrics::Lite::Analysis::Util&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help