There are occasions when several modules will perform the task required. I would like to explore your thought process for deciding which module to use. The problem I have is very real and I have to make this decision. But, I am not so interested in only this case, I would love some insight into how you generally choose modules when several will do the job.

I need to make a call to a web endpoint. Nothing very special. It's an HTTPS endpoint using GET with the query string appended to the URL. The endpoint returns some simple text with the result. It does not use HTTP status codes other than if there is a network problem. I have no need to read the status codes, just the returned text.

There are three modules I could use. There are probably lots more but these three are ones I have used and I am familiar with. They are also all already installed.
- HTTP::Tiny
- LWP::Simple
- LWP::UserAgent

Portability is not an issue - only I will be using the script so HTTP::Tiny being a core module doesn't make any difference here.

So, which would you choose and why?
More importantly, how do you generally make choices like these?


In reply to Choosing the right module by Bod

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.