Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: How to pass an argument to a Module?

by mascip (Pilgrim)
on Sep 09, 2012 at 13:03 UTC ( #992586=note: print w/replies, xml ) Need Help??


in reply to Re: How to pass an argument to a Module?
in thread How to pass an argument to a Module?

Thank you.
I understand that i have to override import(). But as i use Perl6::Export::Attrs, i'm reading in the doc that i have to use an IMPORT block instead. I'm going to try this.

Another idea for "cheating" : having a CLASS() method which would contain my parameter, and which i would override by monkeypatching.
Not very clean though, i'll try the IMPORT thing.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://992586]
help
Chatterbox?
[shmem]: older versions of perl can't guess that "use of <<>> may be implemented someday" :D
Discipulus how much wise my brothers are? ;=)
[karlgoethebier]: thanks ;-
[karlgoethebier]: ...to all for reading the manuals
[shmem]: karlgoethebier: reading? Naah... just grep :-P

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2017-07-21 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (320 votes). Check out past polls.