oldtomas has asked for the wisdom of the Perl Monks concerning the following question:
I cooked up a small Perl application consisting of a script, which is based on a Module (with some submodules), like so (much simplified)
script:My/Module.pm:#!/usr/bin/perl use My::Module;
My/Module/Submodule.pm:package My::Module; ...
package My::Module::Submodule ...
Now, to offer a staging version of all that, I'd like to let Makefile.PL a "staging version" of all that. Assume $VERSION==0.9, then I'd like to have:
script:My/Module-0.9.pm:#!/usr/bin/perl use My::Module-0.9;
Is that possible with Makefile.PL? Is that even a good idea? Where do I start? What alternatives do I have?package My::Module; ... My/Module-0.9/Submodule.pm: <code> package My::Module::Submodule ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Appending $VERSION to package name in Makefile.PL
by Eliya (Vicar) on Apr 18, 2012 at 17:39 UTC | |
by oldtomas (Novice) on Apr 19, 2012 at 07:41 UTC | |
by tobyink (Canon) on Apr 19, 2012 at 10:22 UTC | |
by Anonymous Monk on Apr 19, 2012 at 08:06 UTC | |
by Anonymous Monk on Apr 19, 2012 at 13:08 UTC | |
by oldtomas (Novice) on Apr 19, 2012 at 12:10 UTC | |
by Anonymous Monk on Apr 19, 2012 at 12:50 UTC | |
|