So I guess you only want to handle one of these files, regardless of how many there are? This should do the trick:
my $a_file = (glob("1bn9.*.cnt")) or die "No file found"; rename $a_file,"1bn9.cnt" or die "Couldn't move file";
In reply to Re: renaming files question
by tirwhan
in thread renaming files question
by Angharad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |