title: How do I check if a Unicode directory exists on Windows in Perl?
body: <p>I need to check whether a Unicode directory exists in Perl. I am using Windows XP and Perl Camelbox 5.10.0.</p>
  
  <p>If I try to create a directory (like Sinan suggested here <a href="https://stackoverflow.com/questions/2184726/how-do-i-create-a-unicode-directory-on-windows-using-perl">stackoverflow.com/questions/2184726</a>) that already exists the program dies.</p>
  
  <p>Unfortunately <code>if ( !-d $dir_name ) { # create directory $dir_name }</code> doesn't seem to recognize Unicode directories or I am doing something completely stupid. I tried to encode the directory name before checking it, but the result is the same.</p>
  
  <p>How do I check for the existance of a Unicode directory?</p>