<:
for my $col (pairs @wordcols) {
my $val = $row->{$col->key} // '';
$val = '{'.join(',', map {s/,/\\,/gr} @{$val}).'}' if ref $val eq 'ARRAY';
<:
for my $col (pairs @wordcols) {
my $val = $row->{$col->key} // '';
$val = '{'.join(',', map {s/,/\\,/gr} @{$val}).'}' if ref $val eq 'ARRAY';