Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How do you add .RTF to a file

by hmerrill (Friar)
on Jun 05, 2003 at 13:54 UTC ( [id://263328]=note: print w/replies, xml ) Need Help??


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

Try to be more clear - do you actually want to rename an existing file from "file1" to "file1.rtf"? If you do, than perl's 'rename' function should work.

Do
perldoc -f rename
at a command prompt to read the perldocs on how to use 'rename' - it's pretty much what you would expect.

Also, you are not using the substitution operator properly - do
perldoc perlop
at a command prompt and search (using the forward slash "/") for 'subst' - you'll see all the info you need.

HTH.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://263328]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found