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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: How do you add .RTF to a file
by young_david (Friar) on Jun 05, 2003 at 14:41 UTC |
In Section
Seekers of Perl Wisdom