in reply to foreach - adding newlines?
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?
|
|---|