in reply to Re: win32/winxp, -r and chdir succeed but opendir fails, permission denied
in thread win32/winxp, -r and chdir succeed but opendir fails, permission denied

To opendir on your current working directory, you either have to opendir(DIR, '.') or provide the full path.
Quoting the OP:
opendir DIR, '.' or die $!
which he does right after a successful chdir. Which point are you trying to make here?

Replies are listed 'Best First'.
Re^3: win32/winxp, -r and chdir succeed but opendir fails, permission denied
by LonelyPilgrim (Beadle) on Feb 18, 2012 at 21:53 UTC

    I noted my own mistake. And then noticed that the OP had not made it. I was not implying any incompetence on his part, but acknowledging my own. I didn't remove the comment because I hoped that it might be helpful to someone else.