my()
or wasn't fully qualified. Because this is to avoid
variable suicide problems and subtle dynamic scoping issues, a merely
local() variable isn't good enough. See my and
local.
The local() generated a compile-time error because you just touched a global name without fully qualifying it.