logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Devel::REPL::Plugin::PPI - PPI dumping of Perl code

Author

       Shawn M Moore <sartak@gmail.com>

Description

       This plugin provides a "ppi" command that uses PPI::Dumper to dump PPI-parsed Perl documents.

       The code is not actually executed, which means that when used with Deve::REPL::Plugin::OutputCache there
       is no new value in "_".

Name

       Devel::REPL::Plugin::PPI - PPI dumping of Perl code

Support

       Bugs may be submitted through the RT bug tracker
       <https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-REPL> (or bug-Devel-REPL@rt.cpan.org
       <mailto:bug-Devel-REPL@rt.cpan.org>).

       There is also an irc channel available for users of this distribution, at "#devel" on "irc.perl.org"
       <irc://irc.perl.org/#devel-repl>.

Synopsis

         repl> #ppi Devel::REPL
         PPI::Document
           PPI::Statement
             PPI::Token::Word    'Devel::REPL'

         repl> #ppi {
         > warn $];
         > }
         PPI::Document
           PPI::Statement::Compound
             PPI::Structure::Block       { ... }
               PPI::Token::Whitespace    '\n'
               PPI::Statement
                 PPI::Token::Word        'warn'
                 PPI::Token::Whitespace          ' '
                 PPI::Token::Magic       '$]'
                 PPI::Token::Structure   ';'
               PPI::Token::Whitespace    '\n'

Version

       version 1.003029

See Also