use Data::Dumper; print STDERR Dumper($variable); [download]
In reply to Re: Methods to debug CGI issues by kprasanna_79 in thread Methods to debug CGI issues by ghettofinger