so that it skips non-.log files .. otherwise the s/// will fail and rename will have identical OLDNAME and NEWNAME arguments.$new_name =~ s/\.log/\.txt/ig or next;
In reply to Re^2: File Extension Renaming
by davidrw
in thread File Extension Renaming
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |