Hello newbie00,

your code is a copy of the SYNOPSIS part of the manual page of Authen::Captcha.

The SYNOPSIS part of a manual page to a module is meant to give a quick overview of the way a module works. The code written therein is not meant to be copied and run verbatim.

For instance, the line

my $results = $captcha->check_code($code,$md5sum);
must be run after an image has been created, displaying a random set of characters of $number_of_characters length, it's MD5 sum has been created and a user provided $code, i.e they typed the characters displayed on the image.

Image creation and verification are two sequential processes, but they are conveniently displayed in the SYNOPSIS of the module in one block.

I advise you to read the manual page of Authen::Captcha thoroughly, formulate your needs, engage in their fulfilment and come back with some code of your own.

regards,
--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

In reply to Re^3: Need help with Authen::Captcha instructions by shmem
in thread Need help with Authen::Captcha instructions by newbie00

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.