in reply to escapeHTML & scalar/array context

I don't think one should modify CGI.pm. Just fix your call to Dumper. The Dumper subroutine is context sensitive, returning a list in list context and returning a single string in scalar context.

Hence,

print $q -> escapeHTML (scalar Data::Dumper::Dumper ($foo, $bar));
ought to do the trick.

Abigail