Re: Is this the correct structure?by hermes1908 (Novice)
|on Jul 04, 2013 at 18:44 UTC||Need Help??|
Your code has quite a few problems and it seems that you are not grasping some
fundamental concepts. If you are new to the language I would recommend you pick
up a copy of "learning perl". I'm too lazy to comment each line of your code,
but I'm sure some kind monk will. A thing which you have to be careful about
this particular file is that it uses crlf (windows style) newlines. As I
understand it perl automatically accounts for this on windows, but if you're on
unix you need to explicitly open the file with "<:crlf".
Some important concepts you should familiarize yourself with:
The list is by no means complete and as mentioned I would recommend getting a good book perl (learning perl or programming perl)
Below is some code which does what you want using what I believe are reasonably good conventions.