You've come a long way, baby!

Egads! White space. Lots of it! strict, warnings, polite use of Exporter (with @EXPORT_OK), consistent use of indenting, documentation. All good!

Count Zero has made great suggestions. Here's one more. There are some standard conventions about how sections of POD are organized. Here's how I would revise your pod to use more standard headings and organization. However, there are many styles out there and I encourage you to check CPAN for further examples, as well.

=pod =head1 NAME Games::Random::Alignment - generates random alignments for AD&D 2nd Ed +ition. =head1 USAGE use Games::Random::Alignmnet qw(random_alignment); # generate lawful, chaotic, good, evil or neutral random_alignment("parts"); # generate good, neutral or evil random_alignment("good_vs_evil"); # generate lawful, neutral, or chaotic random_alignment("lawful_vs_chaotic"); # generate lawful evil, neutral evil, or chaotic evil. random_alignment("evil"); # generate lawful good, neutral good, or chaotic good. random_alignment("good"); # generate chaotic good, chaotic neutral, or chaotic evil. random_alignment("chaotic"); # generate lawful good, lawful neutral, or lawful evil. random_alignment("lawful"); # generate lawful neutral, true neutral, or chaotic neutral. random_alignment("neutral_lc"); # generate neutral good, true neutral, or neutral evil. random_alignment("neutral_ge"); # generate any two part alignment. random_alignment("any"); =head1 DESCRIPTION This module generates random alignments for AD&D 2nd Edition. When yo +u want to generate a random alignment with this module, you can choos +e from any of the alignment axes. For examples, see the L</USAGE> se +ction above. =head1 AUTHORS Lady Aleena with lots of help from DrForr, whoppix, and rindolf in the + #perlcafe on freenode. =cut

As you have already probably figured out indenting pod causes it to be formatted as code, so all of the usage section will look like code samples. L</Some heading name here> lets you create a link to any other heading (a name introduced by =head1, =head2, etc) in your pod. See perlpod for all the gory details.

Best, beth


In reply to Re: Lady Aleena's first working module by ELISHEVA
in thread Lady Aleena's first working module by Lady_Aleena

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.