in reply to Creating 2 sockets in a script.
You cannot use $s = "a" || $s = "b" (see perlop on precedence of operators), but you could use $s = "a" || "b" instead.