Commit [r97] Maximize Restore History

Minor fixes and improvements:

- check for write errors and abort if any
- add missing EOL sequence at file end
- run with -w and use strict
- fix a perl -w warning and use $lastFunctionName
- change shebang to let /usr/bin/env search for perl
- Usage hints to - arguments for stdin/stdout

ma-work 2010-02-11

changed /
/ Diff Switch to side-by-side view