in reply to Methods to debug CGI issues
use Data::Dumper; print STDERR Dumper($variable); [download]