in reply to writing an organiser in perl

im sorry of i didnt read the faq before posting, i was under the impression that this was a help and information sharing site, and this is the kind of help i need. ive gone through a few tutorials, and i do know how to open files, write to files, ifs, fors, regexes etc. What im having trouble with is putting it all together to do exactly what i need. I will eventually get it done on my own but having an example to use as a backbone might speed things up for me. sorry if i offended your awesomeness by asking something.

Replies are listed 'Best First'.
Re^2: writing an organiser in perl
by broomduster (Priest) on Sep 16, 2008 at 14:55 UTC
    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.