Assuming $ua is a LWP::UserAgent object, those two snippets are identical. The call to get simply ends up in the exact same call to request, nothing more.
I don't buy that causal relationship. I believe the problem is not related to the snippet you use and that your barking up the wrong tree. I could be wrong, but I don't see any difference between those two snippets.