in reply to compare two data sets (matrix)
Some hints
- to make it generic, use arrays instead of $a, $b ...
- to populate the arrays, use split instead of the regex (this avoids using $1, $2 ...)
- then use a loop to loop through all your elements to process them
- you might want to join the arrays to get a string again before printing them
HTH, Rata