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

Re^2: usage of EXPORT function

by tobyink (Abbot)
on Sep 29, 2012 at 14:53 UTC ( #996384=note: print w/replies, xml ) Need Help??


in reply to usage of EXPORT function

Modules written to be used for OO should generally not be exporting anything. Especially they should never export a sub which is expected to be called as a method.

(This was intended as a reply to the OP, not to 2teez. Anyone who has suitable privileges, feel free to re-parent it.)

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996384]
help
Chatterbox?
[stevieb]: daughter arrived from SF with Gandalf the bunny for his first international flight. Very wonderful Friday... like the holidays came early :)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2016-12-03 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (52 votes). Check out past polls.