in reply to Array indexing and string manipulation

$array[$_] or substr($string, $_, 1) |= "\x20" for 0 .. $#array;
This will not work for letters with code points exceeding 255.