Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How can i change the file extension?

by pvaldes (Chaplain)
on Sep 23, 2012 at 22:12 UTC ( #995262=note: print w/replies, xml ) Need Help??


in reply to How can i change the file extension?

To change the file extension is easy, either renaming or i.e:

use File::Copy; copy("text.txt","text.html")

But note that this is not the same as to change the type of file.

So you probably want instead to convert your files to html files, and this is a different problem. Take a look to the module TextToHTML

If you use GNU the file extension is not really relevant, you could have a jpg named file.txt or file.pdf and will be perfectly recognised as image

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995262]
help
Chatterbox?
[Discipulus]: I 'm always at 125%, and fontsize 12

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2017-09-26 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (293 votes). Check out past polls.

    Notices?