in reply to New to coding - Looping code to save time
You could do exactly what you ask with "symbolic reference". I strongly recommend that you do not use it. Learn to use arrays or hashes instead.