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.
In reply to Re^5: Perl : Split/Regex
by AppleFritter
in thread Perl : Split/Regex
by sravs448
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |