in reply to prototyle mismatch error using LWP::Simple and CGI.

Both CGI and LWP::Simple export a 'head' function. If you aren't using LWP::Simple's head() function, only import what you want: use LWP::Simple 'get'; Otherwise:
use CGI ':standard'; use LWP::Simple (); ... print LWP::Simple::head(...);