THANKS for the tips. Very helpful. Considered tie before but will give it more thought now. Also will try the join. Didn't realize hadn't replaced == with eq (teaching myself perl these past months when I have free time). Will try this stuff this week.