Add test for separator.
Use an external file to avoid opening a file handle from a scalar, which requires perl 5.8.0+.
Update documentation.