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
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.my $results = $captcha->check_code($code,$md5sum);
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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |