open (FILE, "dine"); @array = ; $end = scalar @array; $count = 0; while () { for ($count = 0; $count < $end; $count++) { ###then some how replace x's with the new values