Perhaps your input file has a final line consisting of a newline only, or line that has no fourth field? That would give the behaviour you describe.
In reply to Re: export variable outside foreach
by philipbailey
in thread export variable outside foreach
by mitchreward
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |