perlquestion
skyler
Hello Monks,
I don't know how to add an extension to a file that doesn't have one. I tried pattern matching but it doesn't do anything. Do you have any ideas?
For example:
"file1" needs to change to "file1.rtf"
<CODE>
$newfile =~ s/\^$/.rtf/;
</CODE>