in reply to How to Debug the CGI Codes
This will throw any errorsuse CGI::Carp qw/fatalsToBrowser/;
Useful for examining the contents of any data structure.use Data::Dumper::Simple; print q(<pre>); print Dumper(%foo);
Useful to find out which CGI parameters were passed and what their values are.my @params = param(); print q(<pre>); for (@params) { print "$_ :: $params[$_]\n"; }
Hope this helps,
Darren :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to Debug the CGI Codes
by strat (Canon) on Jul 10, 2006 at 08:13 UTC | |
by reneeb (Chaplain) on Jul 10, 2006 at 09:01 UTC | |
by Ieronim (Friar) on Jul 10, 2006 at 09:06 UTC |