Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: how to export a method

by wanna_code_perl (Friar)
on Oct 23, 2019 at 07:38 UTC ( [id://11107876]=note: print w/replies, xml ) Need Help??


in reply to Re^2: how to export a method
in thread how to export a method

Wrong. ...
Wrong. ...
Wrong. ...
there are no sweeter words than "I told you so". ;-)

Yeah, I'm starting to see that about you :-)

Points well taken about require vs. use, and @ISA. The very first example in the Synopsis has long done what I need it to do. Maybe it's time for a documentation patch to de-emphasize the older calling convention? No reason for it to have top billing if it's not recommended for new code. Anyway, I'll definitely be adopting this advice going forward. Thanks.

OOP modules should not export methods, as others have explained.

Yes, I was the first to explain that, some hours before your reply.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2024-04-16 09:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found