Replying to myself. 8) After digging around a bit I discovered that CGI.pm has moved to emitted XHTML recently. I don't know much XHTML but I guess this is causing the test fail. See: http://stein.cshl.org/WWW/software/CGI/#new Expect test result probably have to be conditional dependant on $CGI::VERSION. Nicholas