in reply to Re: Detecting undefined subroutines at compile time
in thread Detecting undefined subroutines at compile time

Or you could do this:
local *__ANON__ = "maurice the happy giraffe"
(or whatever name you want to report) inside the anonymous subroutine.