Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

How to rewrite the contents of the file using perl?

by finddata (Sexton)
on Mar 20, 2017 at 08:22 UTC ( [id://1185228]=perlquestion: print w/replies, xml ) Need Help??

finddata has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: How to rename the contents in perl?
by Corion (Patriarch) on Mar 20, 2017 at 08:28 UTC

    You keep talking about "rename the contents of the file", but you cannot rename the contents of a file.

    Please make up your mind whether you want to:

    1. change the name of a file ("rename")
    2. change the content of a file ("rewrite")

    Also, your code contains lots of stuff that has no bearing on whatever your problem is. Please, as you have been told many times already, provide sufficient input data, what your program does and also what you think your program should do instead.

    We can only provide you help if you provide us enough context. Even if this were a code writing service, you still have to tell us exactly what the program should do.

      i had added input file

        Thank you for adding an example input file.

        Please re-read my questions again. There are many more questions that you did not yet answer. Please answer these so that we can provide you better advice.

    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-19 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found