He's declaring the local variable so that it is destroyed when the script finishes.

Only specifying "sockread %var" will make that a global variable, which is left in the variables list.


Gone.