Neat. I'd suggest adding two more examples which show some special behavior of $/. Setting $/ to the empty string will read in a paragraph at a time (separated by two or more newlines), and setting it to a reference to an integer (e.g. $/ = \256;) will read in up to that many characters each time.