in reply to Re^6: Making it clearer to say that a sub is defined within current package
in thread Making it clearer to say that a sub is defined within current package

Ah, right. I understood that you were saying that calling My::function from a module that does not define function would yield unexpected results. The actual message makes more sense :D.

If there are already package that use My:: without having reserved the keyword, they already are risky on their own anyway, if you ever end up including more than one of those in one program.

  • Comment on Re^7: Making it clearer to say that a sub is defined within current package

Replies are listed 'Best First'.
Re^8: Making it clearer to say that a sub is defined within current package
by LanX (Saint) on Apr 11, 2019 at 16:13 UTC
    my philosophy is that nobody else should try to use my personal footgun for his own limbs. ;-)

    BTW: the object thing could work, but I won't implement it, cause this reeks strongly like an XY problem.

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