in reply to Re^3: Idiom for a regex translation
in thread Idiom for a regex translation

You are of couse right, if I was squishing lots of things a subroutine would be warrented (duplication eq bad).

I would argue, however, that a variable going from $name into $squished_name is sufficiently self-documenting as to not warrent a sub.

Thanks for your comments.