Damn code samples don't always work.

Note: Ctrl-D has its problems.