in reply to opening new file in different directory

That's strange. I would think it was some funky thing with not having w or x permission for one of the directories in the pathname, except then the chdir trick wouldn't work (I don't think). What errors are you getting (in $!)?
  • Comment on Re: opening new file in different directory