Perl::Tidy::Sweetened::Variable::Twigils - Perl::Tidy::Sweetened filter plugin to handle twigls
version 1.00
our $plugins = Perl::Tidy::Sweetened::Pluggable->new(); $plugins->add_filter( Perl::Tidy::Sweetened::Variable::Twigils->new( twigil => '$!', marker => 'TWG_BANG', ) );
This is a Perl::Tidy::Sweetened filter which enables the use of twigils as defined by the Twigils module. New accepts:
twigil => '$!'
Declares a new twigil. In this case to be used as $!variable.
$!variable
marker => 'TWG_BANG'
Provides a text marker to be used to flag the new keywords during prefilter. The source code will be filtered prior to formatting by Perl::Tidy such that:
prefilter
$!class_attribute
is turned into:
$__TWG_BANK_1
Then back into the original twigiled variable in the postfilter.
postfilter
See Perl::Tidy::Sweetened
Please report any bugs or suggestions at http://rt.cpan.org/NoAuth/Bugs.html?Dist=Perl-Tidy-Sweetened
Mark Grimes, <mgrimes@cpan.org>
This software is copyright (c) 2014 by Mark Grimes, <mgrimes@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Perl::Tidy::Sweetened, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Tidy::Sweetened
CPAN shell
perl -MCPAN -e shell install Perl::Tidy::Sweetened
For more information on module installation, please visit the detailed CPAN module installation guide.