The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Perl::ToPerl6::TransformerSummary - Descriptions of the Transformer modules included with Perl::ToPerl6 itself.

DESCRIPTION

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.

POLICIES

BasicTypes::Rationals::AddTrailingZero

Add trailing zero where needed [Default necessity 5]

RewriteSpecialLiterals

Format __END__, __LINE__ &c [Default necessity 5]

Builtins::AddWhitespace

Format my(), our(), print() [Default necessity 5]

Instances::RewriteCreation

Indirect object notation no longer allowed. [Default necessity 5]

CompoundStatements::RewriteMapGreps

Format map{}, grep{} [Default necessity 5]

CompoundStatements::RewriteLoops

Format for(;;) loops [Default necessity 5]

Arrays::AddWhitespace

Format qw() to qw () [Default necessity 5]

BasicTypes::Strings::RewriteHereDocs

Format <<EOF constructs correctly [Default necessity 5]

CompoundStatements::RenameForeach

Rename 'foreach' to 'for' [Default necessity 5]

Subroutines::RemovePrototypes

Remove ($)-style prototypes on subroutines. [Default necessity 5]

Variables::RewriteSigils

Give variables their proper sigils. [Default necessity 5]

Packages::RewriteDeclarations

Format 'package Foo;' declarations [Default necessity 5]

Builtins::Rename

Format my(), our(), print() [Default necessity 5]

BasicTypes::Strings::AddWhitespace

Add whitespace between q/qq and () [Default necessity 5]

Regexes::StandardizeDelimiters

Regexen can no longer have alphanumeric delimiters [Default necessity 5]

Variables::QuoteHashKeys

Transform bareword hash keys into quoted hash keys [Default necessity 5]

Pragmas::RewriteConstants

Transform Readonly and constant [Default necessity 5]

BasicTypes::Strings::Interpolation

Format ${x} correctly [Default necessity 5]

Variables::ReplaceNegativeIndex

Perl6 now uses [*-1] notation to represent negative indices. [Default necessity 5]

Regexes::SwapModifiers

 [Default necessity 5]

PostfixExpressions::AddWhitespace

Add whitespace between conditionals 'if', 'unless' &c and () [Default necessity 5]

Pragmas::RewritePragmas

Remove unnecessary pragmas [Default necessity 5]

CompoundStatements::AddWhitespace

Add whitespace between conditionals 'if', 'unless' &c and '(...)' [Default necessity 5]

Packages::RewriteUsages

Format 'use Foo;' to 'use Foo:from<Perl5>;' [Default necessity 5]

Variables::RewriteSpecialVariables

Format special variables such as @ARGV [Default necessity 5]

BasicTypes::Strings::RenameShell

Rename qx() to qqx() [Default necessity 5]

Variables::RewriteMatchVariables

Renumber match variables [Default necessity 5]

BasicTypes::Integers::RewriteHexNumbers

Format 0x1234 properly [Default necessity 5]

Operators::FormatOperators

Transform '->', '!" &c to their Perl6 equivalents [Default necessity 5]

BasicTypes::Strings::RenameRegex

Format regexps correctly [Default necessity 5]

BasicTypes::Integers::RewriteBinaryNumbers

Format 0b0101 properly [Default necessity 5]

BasicTypes::Integers::RewriteOctalNumbers

Format 0o0123 properly [Default necessity 5]

CompoundStatements::SwapForArguments

Swap for my $x ( @x ) { } --> <for ( @x ) - $x { }>> [Default necessity 5]

Builtins::RewritePrint

Format 'print $fh "expr"' [Default necessity 5]

Variables::ReplaceUndef

Give variables their proper sigils. [Default necessity 5]

References::RewriteDereferences

Transform %{$foo} to %($foo) [Default necessity 5]

VERSION

This is part of Perl::ToPerl6 version 0.040

AUTHOR

Jeffrey Goff <drforr@pobox.com>

AUTHOR EMERITUS

Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>

COPYRIGHT

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.