in reply to variable issues (they are mean)
You are useing strict without declaring variables within their scope.
After Compline,Zaxo