|
is bitwise operator and you wan't to short-circuit string to variable, thus use logical OR ||
$v ||= "best";
Bitwise calculation for first chars "t" | "b"
is same as
# 116 | 98 = 118 ("v")
print chr(ord("t") | ord("b"));