http://www.perlmonks.org?node_id=880308


in reply to Text file opening problem

The error clearly says that the file is not in the required path. To find the reason you can print the working directory just before opening the file. Or you can use absolute path (starting from root directory "/" in linux or from drive letter c:, d: etc. in windows) for the file name.

You should also use <code></code> tags around the code you post. Read Markup in the Monastery

--
Regards
- Samar