- or download this
my $first;
...
my $second = $first;
$second =~ s/some/substitution/;
- or download this
my @output = map {
my $temp = $_;
$temp =~ s/some/subst/g;
$temp
} @input;
- or download this
use Regex::FunctionalSubstitute;
my $first;
...
my $second = $first \~ s/some/subst/g;
- or download this
my @output = map {
$_ \~ s/some/subst/g;
} @input;
- or download this
package Regex::FunctionalSubstitute;
use Filter::Simple;
...
);
1;