Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
To make sure whatever is in export can be seen by something else. But what Im not sure on, or how to tackle it is how to export things from my main script to its child modules for examplerequire exporter; export = qw (functions, $variables, @arrays);
With explictly passing $dbh into othermethod() as$dbh = $dbi->connect(...) $variable2= $something2->othermethod();
How can I export a specific set of variables from the main script to everything that gets call from inside the main script Hope my description is understandable :-) Thanks! The Dumb one seeking wisdom$variable2= $something2->othermethod($dbh,...);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Inheritance
by chromatic (Archbishop) on Jun 04, 2005 at 01:09 UTC | |
Re: Inheritance
by tilly (Archbishop) on Jun 04, 2005 at 01:37 UTC | |
by salva (Canon) on Jun 04, 2005 at 02:17 UTC | |
by tilly (Archbishop) on Jun 04, 2005 at 03:11 UTC | |
by fishbot_v2 (Chaplain) on Jun 04, 2005 at 03:17 UTC |