in reply to split questions

Your split should be fine so long as there is no extraneous whitespace. Your assignment would be better as my @response = split /\,/ $response, 39; or

my %response; @response{qw/names for all the fields/} = split /\,/ $response, 39;
depending on whether you want mnemonic identifiers for the fields.

After Compline,
Zaxo