in reply to Problem in Foreach loop
Check the contents of your @array. I suspect it does not contain what you think it should:
use Data::Dumper; print Dumper(\@array);
You never print out the lines of your input file which match your conditions. I expect to see print $_; somewhere inside your while loop. The name of your $line variable is confusing to me. I would have expected it to be a line of your input file, but it is an element of your poorly-named @array.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem in Foreach loop
by cowboyrocks (Novice) on Apr 02, 2009 at 02:41 UTC | |
|
Re^2: Problem in Foreach loop
by cowboyrocks (Novice) on Apr 02, 2009 at 02:46 UTC | |
by Ish (Acolyte) on Apr 02, 2009 at 02:57 UTC | |
by cowboyrocks (Novice) on Apr 02, 2009 at 03:11 UTC |