Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: To find and replace in a file

by hippo (Bishop)
on Feb 25, 2017 at 09:47 UTC ( [id://1182810]=note: print w/replies, xml ) Need Help??


in reply to To find and replace in a file

How to do them ? Please give me a hint

Do you want a hint with the algorithm or do you want a hint with the code? What have you already tried?

Generic Hint: Start with a smaller problem and work up. eg. suppose instead of changing the order of the contents you just wanted to do the prepending with "logic " - do that first as it should be pretty easy given the resources of perlintro, perlrun and print. Can you construct an algorithm to do this? Can you convert the algorithm into code?

We cannot help you if we don't know what's holding you back.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-24 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found