in reply to Screenscraping problem
A long shot: maybe you need to chomp() your input data to get rid of trailing newlines?
Cheers, Sören