in reply to searching for multiple strings in a line
This loop will execute exactly once, setting $x to the value $TheLine. As your comment hinted at, you definitely want $TheLine to be an array, not a scalar variable.foreach $x ($TheLine)
If you can provide a sample of what your input file looks like, and an example input $String, that would make debugging a lot easier.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: searching for multiple strings in a line
by dhudnall (Novice) on Jul 10, 2007 at 17:14 UTC | |
by toolic (Bishop) on Jul 10, 2007 at 17:40 UTC | |
by dhudnall (Novice) on Jul 10, 2007 at 17:58 UTC | |
by roboticus (Chancellor) on Jul 11, 2007 at 10:34 UTC |