http://qs321.pair.com?node_id=462394


in reply to Renaming non-ascii files

First of all, your code doesn't even compile. There are two errors:
elsif($myfile =~ m/[\? ]+(\([0-9]+\))?\.(\w+)\i)
needs to be changed to
elsif($myfile =~ m/[\? ]+(\([0-9]+\))?\.(\w+)/i)
and
$newname = join "." $temp, $ext;
needs to be changed to
$newname = join ".", $temp, $ext;
At that point it will compile. Please post the code you are actually using.
davidj