in reply to Print multiple value from file

You are using twice the same regex ($_= ~/ssId=\s*?(\S+)/), so you get twice the same result (ssId). Change your second regex to something matching your subSnpClass.