SelectSaver

Provides a way to save and restore filehandles so you can temporarily use a different filehandle.