Logicus has asked for the wisdom of the Perl Monks concerning the following question:
package foo; use bar; #more code here 1;
And furthermore I wished for package bar.pm to call in Modern::Perl (alongside doing what it does) such that I don't need to add that to each script as well as having to add use bar... how would I would I go about doing it?
As in I'd rather write the above than write this:
package foo; use bar; use Modern::Perl; #code 1;
My first thought was of exporter but it doesn't seem quite right for the task.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Module mechanics question
by Your Mother (Archbishop) on Aug 12, 2011 at 18:24 UTC | |
|
Re: Module mechanics question
by yitzchak (Sexton) on Aug 12, 2011 at 18:17 UTC | |
|
Re: Module mechanics question
by armstd (Friar) on Aug 12, 2011 at 19:49 UTC | |
by yitzchak (Sexton) on Aug 12, 2011 at 23:51 UTC | |
by Logicus (Initiate) on Aug 12, 2011 at 20:32 UTC | |
|
Re: Module mechanics question
by TomDLux (Vicar) on Aug 15, 2011 at 15:17 UTC | |
by Logicus (Initiate) on Aug 17, 2011 at 17:57 UTC |