I want to learn how to build a distribution. As a first step, I tried to reproduce the example that is given in the POD of Module::Starter::Smart under the Heading Placing an existing module into a new distribution. My result is exactly as shown in the POD. However a closer look shows that my distribution contains a template instead of the contents of my module.

I hope that somebody can tell me what I did wrong. I use openSUSE 11.1 and Module::Starter::Smart version 0.0.2 (installed via CPANplus a few weeks ago).

Here is the script that I used to create my distribution:

test ! -f ~/Sudoku/tstBaz/Foo/Baz.pm && echo 'No test module!' && exit + 1 cd ~/Sudoku/tstBaz rm -R lib rm -Rf Globbo rm -Rf tstdistr mkdir lib cp -R Foo ./lib ls -R ./lib module-starter --distro=Globbo --module=Foo::Baz \ --builder='Module::Build' \ --author="Klaus Wittrock" --email=myemail@web.de ls -R Globbo cd Globbo perl Build.PL ./Build test ./Build dist cd .. mkdir tstdistr cd tstdistr tar -axf ../Globbo/Foo-Baz-0.01.tar.gz cd Foo-Baz-0.01 perl Build.PL --install_base ~/Sudoku/tstBaz/tstdistr ./Build test ./Build install cd .. ls -l ~/Sudoku/tstBaz/Foo/Baz.pm lib/perl5/Foo/Baz.pm

And this is my test module:

package Foo::Baz; use strict; use warnings; print "Start Baz\n";

In reply to Problem with use of Module::Starter::Smart by GUIfriend

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.