in reply to Re: "2" | "8" = ":" and 2|8=10
in thread "2" | "8" = ":" and 2|8=10
Note: This doesn't take magic into account. The bitwise ops sure do.
print is_num($|), "\n"; # 0 $|=1; print is_num($|), "\n"; # 0 print 1 | "A", "\n"; print "1" | "A", "\n"; print $| | "A", "\n"; # Acts as if $| is numeric
Note: SvUOK(x) will always be false if SvIOK(x) is false, and SvNIOK(x) is more efficient than SvIOK(x) || SvNOK(x).
|
|---|