Perl::Tidy::Sweetened::Variable::Twigils(3pm)

Perl::Tidy::Sweetened::Variable::Twigils3pm

Perl::tidy::sweetened filter plugin to handle twigls

Usage

    our $plugins = Perl::Tidy::Sweetened::Pluggable->new();
    $plugins->add_filter(
        Perl::Tidy::Sweetened::Variable::Twigils->new(
            twigil => '$!',
            marker => 'TWG_BANG',
        ) );

Version

version 1.20

Overview

This is a Perl::Tidy::Sweetened filter which enables the use of twigils as defined by the Twigils module. New accepts:

twigil
    twigil => '$!'

Declares a new twigil. In this case to be used as "$!variable".

marker
    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:

    $!class_attribute

is turned into:

    $__TWG_BANK_1

Then back into the original twigiled variable in the "postfilter".

Source

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

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

Mark Grimes <[email protected]>

Bugs

Please report any bugs or feature requests on the bugtracker website <https://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.

From perltidier 1.20-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.