rename $_, lc($_) or warn "Could not rename $_ to @{[lc($_)]}: $!\ +n";
In case the target filename already exists in the directory (especially if case-sensitive filesystems are involved). Or warn instead of die. Or break lc($_) out into a variable to avoid the code interpolation. Whatever.
--In reply to Re:x2 Renaming Sub Dir/Files.
by grinder
in thread Renaming Sub Dir/Files.
by JoeCool
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |