in reply to Re^3: renaming filenames
in thread renaming filenames

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.

Replies are listed 'Best First'.
Re^5: renaming filenames
by Anonymous Monk on Aug 18, 2012 at 08:12 UTC

    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 $!;