Skip to content

SubstituteAndReturn: contextual and chained substitute #7

@zmughal

Description

@zmughal

The plugin does not currently support substitution with the r flag

  1. that uses $_, e.g.,
map { s/foo/bar/r } @list

which does not change the input

  1. and chained substitution, e.g.,
$foo =~ s/foo/bar/gr =~ s/(bar)+/baz/gr

which gives

(map { (my $__B_001 = $_) =~ s/foo/bar/g; $__B_001 } $foo)[0] =~ s/(bar)+/baz/gr

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions