in reply to splitting lines a number of times

You could use a regexp to get the values:

($test1,$test2)= $split1[0]=~/\(\s*(\d+),\s*(\d+)/;

It looks more complicated than it is because '(' has to be escaped when you want to search for it in a regular expression. The other parens in the search pattern are used as capture markers, anything between them is given back as a list in list context

And yes, you can use the numbers to perform any operations, any string that looks like a number can be used as a number

UPDATE: corrected the array access