31 Jan 2021 17:32:36 UTC
- Distribution: Perl-Tidy-Sweetened
- Module version: 1.18
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Testers (968 / 0 / 0)
- KwaliteeBus factor: 1
- 88.76% Coverage
- License: perl_5
- Perl: v5.10.0
- Activity24 month
- Download (35.84KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:4 non-PAUSE usersMGRIMES Mark Grimesand 6 contributors
- Mark Grimes E<lt>firstname.lastname@example.orgE<gt>
- Kent Fredric (@kentnl)
- Gregoy Oschwald (@oschwal)
- Curtis Brandt (@aggrolite)
- Peter Roberts (@pwr22)
Perl::Tidy::Sweetened - Tweaks to Perl::Tidy to support some syntactic sugar
There are a number of modules on CPAN that allow users to write their classes with a more "modern" syntax. These tools eliminate the need to shift off
$self, can support type checking and offer other improvements. Unfortunately, they can break the support tools that the Perl community has come to rely on. This module attempts to work around those issues.
The module uses Perl::Tidy's
postfilterhooks to support
funckeywords, including the (possibly multi-line) parameter lists. This is quite an ugly hack, but it is the recommended method of supporting these new keywords (see the 2010-12-17 entry in the Perl::Tidy CHANGES file). The resulting formatted code will leave the parameter lists untouched.
Perl::Tidy::Sweetenedattempts to support the syntax outlined in the following modules, but most of the new syntax styles should work:
perl 5.20 signatures
The idea and much of original code taken from Jonathan Swartz' blog.
Mark Grimes <email@example.com>
Source repository is at https://github.com/mvgrimes/Perl-Tidy-Sweetened.
Please report any bugs or feature requests on the bugtracker website http://github.com/mvgrimes/Perl-Tidy-Sweetened/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
This software is copyright (c) 2021 by Mark Grimes <firstname.lastname@example.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.
Module Install Instructions
To install Perl::Tidy::Sweetened, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Perl::Tidy::Sweetened
For more information on module installation, please visit the detailed CPAN module installation guide.