in reply to Error: Uninicialized Value

@dates contains (for example): 12/31/2007 1/1/2008 1/2/2008 1/3/2008 1/4/2008 1/5/2008

@flds contains: 'New Years' Holiday Clinic

In other words, you've six dates and three fields. You're trying to print one field with each date, and there aren't enough fields to go around. So you get three undefs, one each for the final three shifts.