brian d foy > App-PPI-Dumper-1.02 > App::PPI::Dumper

Download:
App-PPI-Dumper-1.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 1.02   Source  

NAME ^

App::PPI::Dumper - Use the PPI to dump the structure of a Perl file

SYNOPSIS ^

        use App::PPI::Dumper;
        
        App::PPI::Dumper->run( @ARGV );

DESCRIPTION ^

Parse a Perl document with PPI and dump the Perl Document Object Model (PDOM). This script is a command-line interface to PPI::Dumper.

Methods

run( OPTIONS, INPUT_FILE )

Parse INPUT_FILE with the given PPI::Dumper options, then print the result to standard output.

-m

Show the memory address of each PDOM element.

-i N

Ident each level of output by N spaces. The default is 2.

-P

Do not show the full package name for each PPI class.

-T

Do not show the original source token that goes with each PPI object.

-W

Do not show whitespace tokens.

-C

Do not show comment tokens.

-l

Show the source code location of each PPI token.

-r

Parse the input in readonly mode. See PPI::Document::new() for the details.

SEE ALSO ^

Most behaviour, including environment variables and configuration, comes directly from PPI::Dumper. I just made a command-line tool for it.

SOURCE AVAILABILITY ^

This code is in Github:

        git://github.com/briandfoy/app-ppi-dumper.git

AUTHOR ^

brian d foy, <bdfoy@cpan.org>

COPYRIGHT ^

Copyright (c) 2009-2013, brian d foy, All Rights Reserved.

You may redistribute this under the same terms as Perl itself.

syntax highlighting: