- or download this
for (@filenames) {
s/CSS//;
...
# or written with a statement modifier:
# s/CSS// for @filenames;
- or download this
for (@filenames) {
s{ # substitute
...
}
{$1}x; # against the capture above
}
- or download this
for (@filenames) {
s/CSS(\.[^\.]+\.ErrorLog)$/$1/; # remove CSS from end of antepenul
+timate token
}
- or download this
for (@filenames) {
if (/CSS/) {
...
$_ = join '.', @t;
}
}