class foo { test $x1 {} # capture the var } $x1 = "t1"