in reply to Parsing output from LWP::UserAgent

the linebreak-sequence in webserver output is "\015\012" which only on some operating systems will be matched by "\n". You might want to try to split by /\015\012/ or /\015?\012/