| Examples |
|
Showing examples of the power of Perl in short scripts. These scripts can be used on Windows/Unix/Linux/... |
Rename all files with .txt extension to .xyz extension
foreach $old (<*.txt>) {
($new = $old) =~ s/txt$/xyz/;
rename $old, $new;
}
Processing command line aruments (user switches) is easy If you would like to see further examples here, contact us and let us know.
|