http://qs321.pair.com?node_id=457444


in reply to LWP::Simple? Prototype mismatch?

This happens because both LWP::Simple and CGI are exporting a sub called head. You aren't using LWP::Simple::head so to prevent it from being imported you can replace
use LWP::Simple;
with
use LWP::Simple qw/get/;