I put a pattern into $/ but it didn't work. What's wrong?

$/ must be a string, not a pattern. Awk has to be better for something. :-)