in reply to Re^2: Shorter/Better way to rename list of files in a directory
in thread Shorter/Better way to rename list of files in a directory

Joost++ on checking. That was careless of me. In that case, though, I'd probably just warn so the loop can keep on trying. While I'm at it, why not change $_ back so I still have an accurate file list after I'm done?

rename $oldname, $_ or $_ = $oldname, warn "Can't rename $oldname to $_: $!";

After Compline,
Zaxo