$funcName = sub Why is the function called instead of assigned?
You are missing a parentheses, sub(), so that the function is called
You are missing a parentheses, sub(), so that the function is called