in reply to dynamic variables

You should probably use a hash to store your data. In a hash you decide the 'names' (i.e. the keys) to your data.

Update: You may also want to follow this thread to read more about it.

"Livet är hårt" sa bonden.
"Grymt" sa grisen...