jacques has asked for the wisdom of the Perl Monks concerning the following question:
I would like to import a function like so:
So that the function is imported and then called with a parameter set in the use statement. Is this possible?use MyModule qw(MyFunction {parameter => 'HelloWord'});
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How can I import a function and set a parameter at the same time?
by ELISHEVA (Prior) on Apr 12, 2009 at 08:22 UTC | |
Re: How can I import a function and set a parameter at the same time?
by ikegami (Patriarch) on Apr 12, 2009 at 08:35 UTC | |
by CountZero (Bishop) on Apr 12, 2009 at 08:56 UTC | |
by ikegami (Patriarch) on Apr 12, 2009 at 08:58 UTC | |
by jacques (Priest) on Apr 12, 2009 at 18:55 UTC | |
Re: How can I import a function and set a parameter at the same time?
by shmem (Chancellor) on Apr 12, 2009 at 12:15 UTC |
Back to
Seekers of Perl Wisdom