Perl::ToPerl6::TransformerSummary - Descriptions of the Transformer modules included with Perl::ToPerl6 itself.
The following Transformer modules are distributed with Perl::ToPerl6. (There are additional Transformers that can be found in add-on distributions.) Each Transformer is listed here with its default necessity. If you don't agree with the default necessity, you can change it in your .perlmogrifyrc file (try perlmogrify --profile-proto for a starting version). See the documentation of each module for its specific details.
perlmogrify --profile-proto
Add trailing zero where needed [Default necessity 5]
Format __END__, __LINE__ &c [Default necessity 5]
Format my(), our(), print() [Default necessity 5]
Indirect object notation no longer allowed. [Default necessity 5]
Format map{}, grep{} [Default necessity 5]
Format for(;;) loops [Default necessity 5]
Format qw() to qw () [Default necessity 5]
Format <<EOF constructs correctly [Default necessity 5]
Rename 'foreach' to 'for' [Default necessity 5]
Remove ($)-style prototypes on subroutines. [Default necessity 5]
Give variables their proper sigils. [Default necessity 5]
Format 'package Foo;' declarations [Default necessity 5]
Add whitespace between q/qq and () [Default necessity 5]
Regexen can no longer have alphanumeric delimiters [Default necessity 5]
Transform bareword hash keys into quoted hash keys [Default necessity 5]
Transform Readonly and constant [Default necessity 5]
Format ${x} correctly [Default necessity 5]
${x}
Perl6 now uses [*-1] notation to represent negative indices. [Default necessity 5]
[Default necessity 5]
Add whitespace between conditionals 'if', 'unless' &c and () [Default necessity 5]
Remove unnecessary pragmas [Default necessity 5]
Add whitespace between conditionals 'if', 'unless' &c and '(...)' [Default necessity 5]
Format 'use Foo;' to 'use Foo:from<Perl5>;' [Default necessity 5]
Format special variables such as @ARGV [Default necessity 5]
Rename qx() to qqx() [Default necessity 5]
Renumber match variables [Default necessity 5]
Format 0x1234 properly [Default necessity 5]
Transform '->', '!" &c to their Perl6 equivalents [Default necessity 5]
Format regexps correctly [Default necessity 5]
Format 0b0101 properly [Default necessity 5]
Format 0o0123 properly [Default necessity 5]
Swap for my $x ( @x ) { } --> <for ( @x ) - $x { }>> [Default necessity 5]
for my $x ( @x ) { }
<for ( @x ) -
Format 'print $fh "expr"' [Default necessity 5]
Transform %{$foo} to %($foo) [Default necessity 5]
This is part of Perl::ToPerl6 version 0.040
Jeffrey Goff <drforr@pobox.com>
Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>
Copyright (c) 2015 Jeffrey Goff, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module.
To install Perl::ToPerl6, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::ToPerl6
CPAN shell
perl -MCPAN -e shell install Perl::ToPerl6
For more information on module installation, please visit the detailed CPAN module installation guide.