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 Policies that can be found in add-on distributions.) The Transformer modules have been categorized according to the table of contents in Damian Conway's book Perl Best Practices. Since most coding standards take the form "do this..." or "don't do that...", I have adopted the convention of naming each module RequireSomething or ProhibitSomething. Each Transformer is listed here with its default severity. If you don't agree with the default severity, 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.
RequireSomething
ProhibitSomething
perlmogrify --profile-proto
Format qw() to qw () [Default severity 5]
Regexen can no longer have alphanumeric delimiters [Default severity 5]
[Default severity 5]
Rename 'foreach' to 'for' [Default severity 5]
Format qx{} [Default severity 5]
Transform Readonly and constant [Default severity 5]
Add whitespace between q/qq and () [Default severity 5]
Give variables their proper sigils. [Default severity 5]
Format <<EOF constructs correctly [Default severity 5]
Transform bareword hash keys into quoted hash keys [Default severity 5]
Remove unnecessary pragmas [Default severity 5]
Add whitespace between conditionals 'if', 'unless' &c and () [Default severity 5]
Format __END__, __LINE__ &c [Default severity 5]
Format regexps correctly [Default severity 5]
Remove ($)-style prototypes on subroutines. [Default severity 5]
Perl6 now uses [*-1] notation to represent negative indices. [Default severity 5]
Format given(), when() [Default severity 5]
Indirect object notation no longer allowed. [Default severity 5]
Add whitespace between conditionals 'if', 'unless' &c and '(...)' [Default severity 5]
Format if(), elsif(), unless() [Default severity 5]
Format until() [Default severity 5]
Format for(;;) loops [Default severity 5]
Format 1.0, .1, 1. correctly [Default severity 5]
Format 'package Foo;' declarations [Default severity 5]
Format special variables such as @ARGV [Default severity 5]
Format ${x} correctly [Default severity 5]
${x}
Format map{}, grep{} [Default severity 5]
Format 'use Foo;' to 'use Foo:from<Perl5>;' [Default severity 5]
Renumber match variables [Default severity 5]
Format 0o0123 properly [Default severity 5]
Format 0x1234 properly [Default severity 5]
Format 0b0101 properly [Default severity 5]
Transform '->', '!" &c to their Perl6 equivalents [Default severity 5]
Swap for my $x ( @x ) { } --> <for ( @x ) - $x { }>> [Default severity 5]
for my $x ( @x ) { }
<for ( @x ) -
Transform %{$foo} to %($foo) [Default severity 5]
Format 'print $fh "expr"' [Default severity 5]
This is part of Perl::ToPerl6 version 1.116.
Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>
Copyright (c) 2005-2011 Imaginative Software Systems. 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.