in reply to Re^6: Use Of Glob On File Extensions (find/rule)
in thread Use Of Glob On File Extensions

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); } }