1Perl::Tidy::Sweet(3pm)User Contributed Perl DocumentationPerl::Tidy::Sweet(3pm)
2
3
4

NAME

6       Perl::Tidy::Sweet - Tweaks to Perl::Tidy to support some syntactic
7       sugar
8

VERSION

10       version 1.15
11

STATUS

DESCRIPTION

14       There are a number of modules on CPAN that allow users to write their
15       classes with a more "modern" syntax. These tools eliminate the need to
16       shift off $self, can support type checking and offer other
17       improvements.  Unfortunately, they can break the support tools that the
18       Perl community has come to rely on. This module attempts to work around
19       those issues.
20
21       The module uses Perl::Tidy's "prefilter" and "postfilter" hooks to
22       support "method" and "func" keywords, including the (possibly multi-
23       line) parameter lists. This is quite an ugly hack, but it is the
24       recommended method of supporting these new keywords (see the 2010-12-17
25       entry in the Perl::Tidy CHANGES
26       <https://metacpan.org/source/SHANCOCK/Perl-Tidy-20120714/CHANGES>
27       file). The resulting formatted code will leave the parameter lists
28       untouched.
29
30       "Perl::Tidy::Sweetened" attempts to support the syntax outlined in the
31       following modules, but most of the new syntax styles should work:
32
33       ·   p5-mop
34
35       ·   Method::Signatures::Simple
36
37       ·   MooseX::Method::Signatures
38
39       ·   MooseX::Declare
40
41       ·   Moops
42
43       ·   perl 5.20 signatures
44
45       ·   Kavorka
46

SEE ALSO

48       Perl::Tidy
49

AUTHOR

51       Mark Grimes <mgrimes@cpan.org>
52

SOURCE

54       Source repository is at
55       <https://github.com/mvgrimes/Perl-Tidy-Sweetened>.
56

BUGS

58       Please report any bugs or feature requests on the bugtracker website
59       <http://github.com/mvgrimes/Perl-Tidy-Sweetened/issues>
60
61       When submitting a bug or request, please include a test-file or a patch
62       to an existing test-file that illustrates the bug or desired feature.
63
65       This software is copyright (c) 2018 by Mark Grimes <mgrimes@cpan.org>.
66
67       This is free software; you can redistribute it and/or modify it under
68       the same terms as the Perl 5 programming language system itself.
69
70
71
72perl v5.30.1                      2020-01-30            Perl::Tidy::Sweet(3pm)
Impressum