Did you set $/ to undef or empty? If so, you might want to wrap it, plus the open, slurp, and close in {} to localize it. Otherwise, bare chomps that follow are affected.
And perhaps you want @EVENT_ARRAY = split/\n/,<EVENTS_FILE>;, to put each line into the array, rather than all the lines in one element?
In reply to Re: foreach - adding newlines?
by hbm
in thread foreach - adding newlines?
by nitehawk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |