Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by LanX (Saint)
on May 14, 2013 at 13:35 UTC ( [id://1033459]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1033459]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-20 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found