09 Jan 2022 01:13:13 UTC
- Distribution: App-PPI-Dumper
- Module version: 1.023
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (64 / 0 / 1)
- KwaliteeBus factor: 1
- 95.83% Coverage
- License: perl_5
- Perl: v5.10.0
- Activity24 month
- Download (10.06KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
App::PPI::Dumper - Use the PPI to dump the structure of a Perl file
use App::PPI::Dumper; App::PPI::Dumper->run( @ARGV );
Parse a Perl document with PPI and dump the Perl Document Object Model (PDOM). This script is a command-line interface to PPI::Dumper.
- run( OPTIONS, INPUT_FILE )
Parse INPUT_FILE with the given PPI::Dumper options, then print the result to standard output.
Show the memory address of each PDOM element.
- -i N
Ident each level of output by N spaces. The default is 2.
Do not show the full package name for each PPI class.
Do not show the original source token that goes with each PPI object.
Do not show whitespace tokens.
Do not show comment tokens.
Show the source code location of each PPI token.
Parse the input in readonly mode. See PPI::Document::new() for the details.
Most behaviour, including environment variables and configuration, comes directly from PPI::Dumper. I just made a command-line tool for it.
This code is in Github:
brian d foy,
Copyright © 2009-2022, brian d foy <email@example.com>. All rights reserved.
You may redistribute this under the terms of the Artistic License 2.0.
Module Install Instructions
To install App::PPI::Dumper, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install App::PPI::Dumper
For more information on module installation, please visit the detailed CPAN module installation guide.