Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by Eily (Monsignor)
on Apr 11, 2019 at 16:08 UTC ( [id://1232455]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1232455]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-19 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found