in reply to split and compare

$16 (a read only value to begin with) and @_1 are horrible names for variables. Please don't do that.

And what does your data (the "Time Sample") look like? It's hard for me to follow if it's not clear what it's supposed to be working on. As I am sure it is the same for you, too.