in reply to Error opening a file

Please approach PerlMonks in this way ...

  1. Do your “due diligence” research first.   Do a search to see if what you’re asking has been asked before ... it most certainly has.
  2. Be sure that you are actually posting a question that can be answered ... and that can be completely understood quickly by someone who knows the answer.
  3. It is of course very frustrating to whack your head against a problem... but maybe the first thing that you need to do, is to get away from the terminal computer for a little while you give yourself time to think, perchance to sleep.   If you decide that you truly are up against a problem where you do not know how to proceed, spend a little time “framing” your question.   Sometimes this very act suggests an answer, or at least a strategy for finding it.
  4. From the place from whence you take, also give back.