Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by LanX (Saint)
on Apr 11, 2019 at 16:54 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-19 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found