NAME

Perl::ToPerl6::Transformer::Packages::RewriteDeclarations - Format 'package Foo;' declarations

AFFILIATION

This Transformer is part of the core Perl::ToPerl6 distribution.

DESCRIPTION

The Perl6 equivalent of a Perl5 package is 'class'. Older Perl5 source uses package Foo; while some more modern source uses package Foo { .. } to delineate package boundaries:

package Foo; --> class Foo { ... }
package # ?
Foo;         --> class\n# ?\nFoo { ... }
package Foo { ... } --> class Foo { ... }

Other transformers will be responsible for ensuring that perl5 classes inherit correctly.

CONFIGURATION

This Transformer is not configurable except for the standard options.

AUTHOR

Jeffrey Goff <drforr@pobox.com>

COPYRIGHT

Copyright (c) 2015 Jeffrey Goff

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.