Pretend a file is a book that you're holding in your hand
You would use the same logic as reading a book
First step is writing that logic down as plain english (this is what the program does, this is how it does it)
No scratch that, first step, is explaining out loud what the problem is (read book to blah blah), and how you're going to solve it (open book, turn page, read line, blah blah )
Before you write any code (or perl-like pseudocode) you should at least read perlintro (and try out all the examples).
See an annotated example of pseudocode
Based on your post Read block of file and print to html table, I highly recommend reading a few chapters from Beginning Perl
See also How do I post a question effectively?
|
|---|