The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

DESCRIPTION

This rule rewrites those assignments that alter a single varible with itself. For example, this one:

    $x = $x + 2;

Is rewritten with the += assignment operator, as:

    $x += 2;