The current code is on github under https://github.com/drforr/Perl-Mogrify, but will change names upon release.

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

    Excellent! I'm anxious to try it out. Thanks for your generous contribution to the Perl community.

Re: Releasing Perl::ToPerl6 this weekend to CPAN
by Jenda (Abbot) on Jul 24, 2015 at 00:34 UTC

    Shame I'll never know what's the ratio of those that "secretly wanted to write @x[0]" to those that went WHADAFUCK?!? when they learned that sigils will be turned inside out.

    You can, with maybe reasonable number of mistakes, convert the scripts written. You can't run a script that'll rewire your brain ... every time you have to switch from one Perl to another.

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.