NAME

Perl::ToPerl6::Transformer::BasicTypes::Integers::RewriteOctalNumbers - Format 0o0123 properly

AFFILIATION

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

DESCRIPTION

Perl6 octal literals have the format ':8<01_67>'. Perl6 enforces the rule that separators must occur between digits, and only one separator character at a time:

017        -> :8<17>
00167      -> :8<0167>
0010_67    -> :8<010_67>
0_010__67_ -> :8<010_67>

Transforms octal numbers outside of comments, heredocs, strings and POD. =head1 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.