in reply to Unable to read a file

You should output $!, and also the name of the file, if opening the file fails.

-- 
Ronald Fischer <ynnor@mm.st>