It might be a good idea to use the 'n' flag in $read so that the contents of the file aren't evaluated.