http://qs1969.pair.com?node_id=263343


in reply to How do you add .RTF to a file

If you wanted to do pattern matching:

my $oldfile = 'file1'; my $newfile =~ s/$/.rtf/; # Search for the end of a string and # replace it with the extension