http://qs321.pair.com?node_id=144042


in reply to Re: Re: All of my terms end up in @foo0
in thread All of my terms end up in @foo0

Ah, just as I had guessed, @file is being read in from an external file. So, the file probably has the wrong line endings for the system. Either convert the file to have the appropriate line endings, or change your code so that it can deal with any line endings.

Here's a very simple, but probably not optimal, example of the latter:

{ local $/; my @files = split /\r\n?|\n\r?/, <FTS>; }