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 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.

POLICIES

BasicTypes::Strings::FormatRegexp

Format regexps correctly [Default severity 5]

Arrays::FormatArrayQws

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

BasicTypes::Strings::Interpolation

Format ${x} correctly [Default severity 5]

Regexes::SwapModifiers

[Default severity 5]

CompoundStatements::FormatMapGreps

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

Builtins::AddWhitespace

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

BasicTypes::Strings::FormatHereDocs

Format <<EOF constructs correctly [Default severity 5]

CompoundStatements::FormatUntils

Format until() [Default severity 5]

Variables::FormatHashKeys

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

Variables::ReplaceNegativeIndex

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

Packages::FormatPackageUsages

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

CompoundStatements::RenameForeach

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

CompoundStatements::FormatConditionals

Format if(), elsif(), unless() [Default severity 5]

Instances::Creation

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

BasicTypes::Rationals::FormatRationals

Format 1.0, .1, 1. correctly [Default severity 5]

Packages::FormatPackageDeclarations

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

FormatSpecialLiterals

Format __END__, __LINE__ &c [Default severity 5]

Variables::FormatSpecialVariables

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

Regexes::StandardizeDelimiters

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

PostfixExpressions::AddWhitespace

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

Subroutines::RemovePrototypes

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

BasicTypes::Strings::FormatShellStrings

Format qx{} [Default severity 5]

BasicTypes::Strings::AddWhitespace

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

Variables::FormatSigils

Give variables their proper sigils. [Default severity 5]

Pragmas::FormatPragmas

Remove unnecessary pragmas [Default severity 5]

CompoundStatements::FormatGivenWhens

Format given(), when() [Default severity 5]

CompoundStatements::AddWhitespace

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

CompoundStatements::FormatLoops

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

Pragmas::FormatConstants

Transform Readonly and constant [Default severity 5]

Operators::FormatOperators

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

BasicTypes::Integers::FormatBinaryLiterals

Format 0b0101 properly [Default severity 5]

BasicTypes::Integers::FormatHexLiterals

Format 0x1234 properly [Default severity 5]

Variables::FormatMatchVariables

Renumber match variables [Default severity 5]

BasicTypes::Integers::FormatOctalLiterals

Format 0o0123 properly [Default severity 5]

References::FormatDereferences

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

Builtins::FormatPrint

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

CompoundStatements::SwapForArguments

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

Variables::ReplaceUndef

Give variables their proper sigils. [Default severity 5]

VERSION

This is part of Perl::ToPerl6 version 1.116.

AUTHOR

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

COPYRIGHT

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.