Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Altering data files

by Hofmator (Curate)
on Oct 10, 2006 at 13:31 UTC ( [id://577415]=note: print w/replies, xml ) Need Help??


in reply to Altering data files

  1. Open the file
  2. Read the file blockwise by using an input record separator, see perldoc perlvar, eg. '}' provided that character does not appear anywhere else in your data.
  3. Split each blocks into lines and look for StrCatDone
  4. Depending on the value after StrCatDone alter the following line.
  5. Output the (possibly altered) block.
Transform this into code and post it here if you have any problems with it.

-- Hofmator

Code written by Hofmator and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Log In?
Username:
Password:

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

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

    No recent polls found