It's a configurable Perl5-Perl6 translator tool based heavily on Perl::Critic. You can use your own .perlmogrifyrc file to configure which translators you want to run, and eventually add and configure your own translators.
While I won't say that it compiles Perl5 to syntactically correct Perl6 100% of the time, I've tested it on DamianWare(tm), and with minimal intervention (changing package declarations, rewriting local *OUT mostly) 99% of Parse::RecDescent passed its compile-time check.
While most of the changes it does are trivial, they can be hard to get right. For instance, =~ is now ~~, ~ is now ^?, . is now ~, and -> is now .. Go ahead and figure out the right order to do those changes in vim or emacs, I'll wait for you. :)
In the meantime, it also changes your for() loops around, tidies map and grep, cleans up your filehandles, and changes your sigils from $x[0] to @x[0] like you've always secretly wanted to do.
As of release here's what it'll do:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Releasing Perl::ToPerl6 this weekend to CPAN
by u65 (Chaplain) on Jul 23, 2015 at 10:40 UTC | |
|
Re: Releasing Perl::ToPerl6 this weekend to CPAN
by Jenda (Abbot) on Jul 24, 2015 at 00:34 UTC |