Shuriken1,
Close but not quite what I am trying to do.
I'll try and explain better if I can. I have several stations, say ALPHA, BETA, CAPPA, etc. Each time the loop is run a variable is put in the string $datastring. So when the loop runs for ALPHA, maybe datastring is 34, when BETA runs maybe datastring is 12. Before this value is lost, I want to save it to a new variable that includes the station name. I want this new variable to be whatever the station name is and the word, say value. So at the end of the loop iterations I will have ALPHAvalue=34, BETAvalue=12, CAPPAvalue=....
Now $station=$datastring would make ALPHA=12. I want to add the word value onto the string so that I get ALPHAvalue=12.