PerlMonks can, indeed, be considered a "help and information sharing site", but you need to make some effort to show what you have tried and explain how your attempt(s) do not meet your expectations. I think you will find that the folks here are willing to help you with code that you post. But you keep asking for examples of code that meets a vaguely stated set of requirements and asking for code that you can use.
May I suggest the following line of attack:
- First read your private /msgs. You can see them (among other places) at the top of the ChatterBox nodelet. According to blazar's note in Re^5: writing an organiser in perl you have a /msg asking you to fix some formatting in your original node.
- Create a small data file (10 lines or so) that is representative of the data that you need to process.
- Write some code that uses this small data file as input and creates (or attempts to create) the output you want.
- If your code does not produce the output you want, post the code and the sample data with a clear explanation of how your expectations are not being met.
If you can do that, chances are that you will get some help. There are, of course, no guarantees of that, but your chances will be much improved over your current approach.