> I am facing was difficulty in debugging the script in my CGI base
> application.
>
> To get the feel of the program I use "print" statements where ever
possible.
> But causes problem with setting cookies as this header has to be
written
> before any thing with can be display as html.
>
> I would be greatfull if any one can give me better solutions for this.

Perhaps CGI::Carp.

    use CGI::Carp qw(warningsToBrowser);

    carp "Boohoo";

    warningsToBrowser(1);

http://search.cpan.org/

Reply via email to