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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |