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


in reply to Re: I go crazy with windows filenames with spaces!
in thread I go crazy with windows filenames with spaces!

All right! My first code works if I chop what I get from cd, so:
$path = `cd`; chop $path; opendir MYDIR, $path; print "Path:\n$path\n"; while ( $file = readdir(MYDIR)) { + print "File: ", $file, "\n"; }
One can really go mad when dealing with filenames in Windows. Greetings Bill... Thanks!