|P is for Practical|
And the (not shown) code runs perfectly fine
the colours in the __DATA__ section asign perfectly with the phone models.
can't see this section in the post. How is this data section structured?
...to adding a second column into the phones.txt file
Already with two columns... but only in some rows
(Well in fact, with a number of columns between one and four, maybe more depending on the name of the phone, who knows?)
I added a column with values (seperated by tab) into the text file however that is also getting printed in the output file aswell as the first column? I want to differentiate between the columns at the beginning of the loop... I hope this makes sense? please can someone help me?
I read it three times and still don't understand your post, sorry, what is the question?. You can not use split like this if you have a variable number of columns in each row. Can we see a sample of your data?