voj has asked for the wisdom of the Perl Monks concerning the following question:
I want to pass module parameters given to a module 'Foo' to be passed to another module 'Bar'. 'Bar' is not a subclass of 'Foo'. For instance if import the Module with
The parameter 'x' should be passed to 'Bar' inside of 'Foo':use Foo ('x');
I fiddled around with Exporter but could not find a right way.package Foo; use Bar ('x'); # this 'x' should not be hard-coded but set dynamically + depending on what is passed to 'Foo'. 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing Module parameters to another module
by almut (Canon) on Feb 19, 2010 at 12:11 UTC | |
|
Re: Passing Module parameters to another module
by shmem (Chancellor) on Feb 20, 2010 at 12:40 UTC |