Well the most obvious thing is your calling a sub that doesn't exist.

Second would be better if you showed all your code as it's not obvious where the snippet shown fits.

Just sayin'.