in reply to question n File::Find

Yeah, my comment on it, is that it looks like when he copied the file contained in $File::Find::name, it copied it's permissions too, and they were readonly. So then he tried to open it for writing and gets the error. Or else the directory where the script tried to create the file didn't have write perms, in this case, the right to create a file. Write in the directory context means create a new file. Read only means you can't create a file there. Just a guess. :-)

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^2: question n File::Find
by skyworld_chen (Acolyte) on Oct 30, 2012 at 13:28 UTC

    thanks for your reply. I have checked the attributes and they are -rw-rw----. Thanks.