add .gitignore
don't reuse variable names in scope
don't rely on error global after eval
remove unneeded initializations
dead code
remove unused variables
use regex with split
trailing comma instead of semicolon
fix punctuation and formatting
use three-arg open(), not two-arg
use strict
change foreach to map
don't warn about variable used to keep document from going out of scope