in reply to Gettin certain lines of text from a text file!

Read perlintro, use Spreadsheet::WriteExcel, Super Search for examples .
  • Comment on Re: Gettin certain lines of text from a text file!

Replies are listed 'Best First'.
Re^2: Gettin certain lines of text from a text file!
by Foxyirish1987 (Novice) on Sep 15, 2009 at 11:10 UTC

    read them already, thats why I have not posted untill now trying to figure it out. Thanks but i'm just useless so they did not help at all lol, only helped to give me an idea how to do it but still no where near what I need. at it 2 weeks now so said i'd post and see what happens. Thank you though

      but i'm just useless

      STOP THAT!
      You are not useless, you have been dropped in it.

      Describe the problem to yourself, in writing, in English (or Gaelic, or whatever). Look at the data. How do you choose the data to extract? Describe that in natural language, then you might try converting that into a regular expression, if one is needed. If regular expressions make you weak at the knees then that probably means you are normal - but you can always ask here.

      You might start with very simple code reading one line at a time then just printing them out, then gradually refine what it is that you are printing. Once you have what you are looking for then try writing into a spreadsheet. Or create a CSV and manually load it. Small steps.
      You're telling me the "Files and I/O" and "Simple matching" sections didn't help? Maybe you need a book.