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


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

You simply need concatination, not pattern matching. To concat two strings, you can use the "." operator as follows:
$file = "File1"; $file .= ".rtf"; or something more like $basename = "File1"; $file = $basename . ".rtf";