in reply to A curiosity

AppleFritter has answered your question exactly correctly.

I'll point out though, that if you want to do an HTTP request with only core modules, HTTP::Tiny has been in core since Perl 5.14. (And on older versions of Perl, it's a very quick and easy installation.)