right... i'm trying to figure out the best way of editing a previous array entry.
the script basically reads each line from a flat file, with a number in the first field and populates the array @list. If i come across the same number in another line i.e. a duplicate (duplicates will ALWAYS be together as i have sorted the file), i skip this line. However i need to add some values from this line to the previous line (previous entry in the array)!!
Does that make any sense? hehe
the script basically reads each line from a flat file, with a number in the first field and populates the array @list. If i come across the same number in another line i.e. a duplicate (duplicates will ALWAYS be together as i have sorted the file), i skip this line. However i need to add some values from this line to the previous line (previous entry in the array)!!
Does that make any sense? hehe