That's actually fairly simple and idiomatic (I recognized the match and copy everything bit right away, and the first part is verbage that goes on every stylesheet in some form). It's at least no worse than when people who don't know perl complain about perl.