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


in reply to ignore certain files in a folder search, and create a random .txt file

I wouldn't be surprised if that chdir() call didn't do what you think it does. Win32's idea of chdir doesn't necessarily involve changing the current drive.

    -- Chip Salzenberg, Free-Floating Agent of Chaos