@a = split //, 'xx110'; @b = split //, '001xx'; splice @a, ++$i, 0, $_ or $i++ for(@b); print @a, "\n"; #### x0x0111x0x