in reply to Re^3: How to pass an argument to a Module?
in thread How to pass an argument to a Module?
I just tried it on a simple package and it works :o)
You're right, as it's not a class i'm doing:
use Mod; Mod::initialize('argument');
It is more simple than the previous solutions, and does what i need. Thank you !
It is less 'elegant' though : there is an additional line of code to put in the client code, each time.
If someone knows how to use IMPORT i'm still interested in learning.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to pass an argument to a Module?
by tobyink (Canon) on Sep 09, 2012 at 21:29 UTC |