I copied the wrong thing. This is what I came up with..
#!/usr/local/bin/perl use strict; use warnings; use File::Find; my @argv; my $dir = $ARGV[0]; find(\&dirRecurs, $dir); sub dirRecurs{ if (-f) { (my $txt = $_) =~ s/pl$/txt/; rename($_, $txt); } }
In reply to Re^7: Use Of Glob On File Extensions (find/rule)
by NewToPerl777
in thread Use Of Glob On File Extensions
by NewToPerl777
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |