in reply to help with s/// inside map

s/// returns the number of substitutions performed, which might be where all the 1's came from. :-)