in reply to Re^4: Perl : Split/Regex
in thread Perl : Split/Regex
For the lines without the Y there would be no thirdth field counting from 0, check or count it.
Correction: there would be no $field[3], but that's the fourth field, not the third, as one conventionally starts to count at one, not zero. (If you disagree, ask yourself how many hands you have, for instance. Is it one or two?)
I thought that this did not need to be said.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Perl : Split/Regex
by 2teez (Vicar) on Sep 03, 2014 at 23:39 UTC |