$/ The input record separator, newline by default. This influences [...] Remember: the value of $/ is a string, not a regex. awk has to be better for something. :-)