in reply to Re: renaming filenames
in thread renaming filenames

I'm always getting the following error:

Undefined subroutine &Errno::ERROR_FILE_EXISTS called at C:/Perl/site/ +lib/Win32/Unicode/Error.pm line 31.

Replies are listed 'Best First'.
Re^3: renaming filenames
by Anonymous Monk on Aug 16, 2012 at 07:07 UTC

    With what?

      with any code which has:

      use Win32::Unicode;

      inside it. So for example with your code:

      use utf8; use Win32::Unicode; # unicode console out printW "I \x{2665} Perl"; $from=poesía; $to=canción; # moveW $from, $to or die $!; renameW $from, $to or die $!;

      I get:

      I ♥ PerlUndefined subroutine &Errno::ERROR_FILE_EXISTS called at + C:/Perl/site/lib/Win32/Unicode/Error.pm line 31.

        Which version of Win32::Unicode do you have?

        Despite your unquoted strings, it works for me

        use utf8; use Win32::Unicode; # unicode console out printW "I \x{2665} Perl"; $from='poesía'; $to='canción'; # moveW $from, $to or die $!; touchW $from or die $!; renameW $from, $to or die $!;