in reply to strings to number and XOR
And I don't understand the purpose of your split. Wouldn't @array = $msg =~ /(..)/g be much handier?