in reply to Re^4: Replacing single quotes to two single quotes inside map
in thread Replacing single quotes to two single quotes inside map

You mean that this way:
map { (my $dx = $data->{ $_ } || '') =~ s/’/'/g; $dx } @allparms

Will not replace 0s with empty string, correct?