Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Making it clearer to say that a sub is defined within current package (Low Tech)

by LanX (Sage)
on Apr 11, 2019 at 16:54 UTC ( #1232461=note: print w/replies, xml ) Need Help??


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/perl5db.pl:737] 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

  • Comment on Re: Making it clearer to say that a sub is defined within current package (Low Tech)
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2022-05-25 15:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?