in reply to Substitution is replacing one character set out of two

Please, you <code>...</code> tags for readability.

What input do you have? What output do you get and how does it differ from your expectations?

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]