Hello

I hope some of you wiser monks might help with this.

I want to develop a contact page where the user submits the email address as part of the form. I wish to validate the email address. So I popped over to CPAN and searched using the phrase 'email address validation' and got six results. Which is not so many to work with to be honest.

But, as with all multiple choices in unfamiliar territory, I am always faced with the problem of which is the most relaible?

I looked at CGI::Untaint::email, thinking to myself 'well I know some CGI...' to find this module is at v0.03 and hasn't been altered since 2001. However it is useful because I didn't know about CGI::Untaint and now I do.

Email::Valid seems more active but hasn't been updated since 2006. It also gets votes here in email address validation regexp although Benchmarking email address validation methods adds a few more modules to the pot that didn't appear in the search results on cpan.org

I will probably use Email::Valid because the comments in the ratings section indicate it is easy to use, but I have been faced with the problem of choosing the 'right' module before and am curious to know how people select modules to use.

I currently use version numbering, activity, and ratings to help me choose. What about you?


In reply to A Beginners Question on CPAN by LesleyB

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.