Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I need to check whether the avg(4th column) is greater then 50 if not should print "too many fails"; But the problem is , since I loop through the class(first coumns)(for loop ) and then through the students details(hash key->column 5)) (foreach loop), so I get them printed more than once depending on the number of students available per class.XY,50,weret,30,reewrw XY,25,weret,30,rerwe yz,45,ferr,55,rwree YZ,90,ferr,55,deert
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print statement to avoid printing aline more than once
by moritz (Cardinal) on May 10, 2011 at 21:03 UTC | |
|
Re: print statement to avoid printing aline more than once
by thewebsi (Scribe) on May 10, 2011 at 21:28 UTC | |
|
Re: print statement to avoid printing aline more than once
by wind (Priest) on May 10, 2011 at 21:49 UTC |