in reply to Just for fun: relabel Perl variables and function names using Acme::MetaSyntactic and PPI

Can I also use PPI to auto-comment your code and get a POD like description of what it does incl. examples ? ;-)

Cheers Rolf

( addicted to the Perl Programming Language)

  • Comment on Re: Just for fun: relabel Perl variables and function names using Acme::MetaSyntactic and PPI

Replies are listed 'Best First'.
Re^2: Just for fun: relabel Perl variables and function names using Acme::MetaSyntactic and PPI
by tobyink (Canon) on May 15, 2013 at 21:08 UTC

    There is a big string called $input and the output is shown below __END__.

    If you want pod, I've now uploaded a somewhat refactored and improved version to CPAN as Acme::PPIx::MetaSyntactic.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name