Aha, gotta declare the vars again in each proc. How do I globally define the $file, since I don't know datatype?