in reply to Making it clearer to say that a sub is defined within current package

The simplest low tech solution to your XY(Z) Problem is to define xyz in a dedicated namespace.

DB<1> sub my::xyz {warn "xyz" } # declaration DB<2> my::xyz() # call xyz at (eval 10)[C:/Perl_524/lib/] line 2.

Be aware that this may collide with other modules using the same namespace.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice