Re: german nouns genderby imp (Priest)
|on Nov 08, 2006 at 16:37 UTC||Need Help??|
What have you tried so far? Monks tend to offer more help to people who are trying to solve a problem, versus people looking to have the community write their code for them.
The basic flow of the program should be something like this:
Open a file:
Read the file one line at a time:
Check the number of items in a list (by evaluating a list in scalar context):
Get a line of input:
Update - hint: always use strict and warnings
Always use the following at the top of your script:
By default perl is extremely forgiving and tries to do what you mean. Sometimes this is desireable, but normally you want perl to be strict and catch the mistakes you make. Save yourself a lot of debugging time by always using both strict and warnings.