in reply to strip header from page fetched w/ LWP

Perhaps you didn't realize that . doesn't match \n unless you give the /s flag.
$out =~ s#<head>.*?</head>##s