Perl::ToPerl6::Transformer::CompoundStatements::FormatGivenWhens - Format given(), when()
This Transformer is part of the core Perl::ToPerl6 distribution.
While Perl6 conditionals allow parentheses, they need whitespace between the bareword given and the opening parenthesis to avoid being interpreted as a function call:
given
given(1) { } --> given (1) { } when(1) { } --> when (1) { } given (1) { } --> given (1) { } when (1) { } --> when (1) { }
This Transformer is not configurable except for the standard options.
Jeffrey Goff <drforr@pobox.com>
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.
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.