for my $original ( glob '/path/lbn9*.cnt' ) { rename $original, '/path/lbn9.cnt'; # file processing here... }