in reply to Substitution Trickery
My that's an ugly expression. Here's what you said, said differently. In fact, you really meant to use the substitution operator s/// (I used a different delimiter because I didn't want to have to escape the / in the regex).
$served =~ s[/$][];
|
|---|