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


in reply to foreach in array

Greetings, I would suspect its a problem with how you are reading the lines in... try this
while(<JOE>){ push @data,$_; }
rather than
while(<JOE>){ @data = <JOE>; }
I think the while is shifting off the first element and thus you are getting what is left in @data.

-InjunJoel
"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo