[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] CGI Newbie



> >
> > use CGI::Carp qw(fatalsToBrowser);
> >
> > right at the top of the script after the #!/usr/bin/perl. Helps
> simply debug
> > from the browser.
>
> I didn't know that you could do that.  Cool.
>
> Another way to see what is going on and to troubleshoot is to run
> the script
> from the command line.  It will echo the errors to STDOUT.
>

Yep. But when someone posts their "newbie" status, I usually recommend a
browser type of simple solution to be tried before sending them on another
learning exercise, such as running a script via Telnet as they're probably
not familiar with using Telnet.

--
Dan Kriwitsky