Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
opendir(DIR,$file); @files = readdir(DIR); close(DIR); for (@files){ if($file =~ /\.HTML/ || /\.HTM/) { system("rename $file (lc)$file"); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Changing filename extentions
by IlyaM (Parson) on Jul 24, 2002 at 17:31 UTC | |
|
Re: Changing filename extentions
by gav^ (Curate) on Jul 24, 2002 at 17:34 UTC | |
|
Re: Changing filename extentions
by DamnDirtyApe (Curate) on Jul 24, 2002 at 17:35 UTC | |
|
Re: Changing filename extentions
by Fastolfe (Vicar) on Jul 24, 2002 at 19:59 UTC |