There is one serious bug in this code and a second less serious bug.
|
If a line does not contain DosID= then the short circuit means that the increment on $count never occurs so the skip alternation will breakdown The original logic looked at even index elements, this looks a odd ones |
In reply to Re^4: Alternative to Substr?
by tachyon
in thread Alternative to Substr?
by New Novice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |