Newbie question

Jacinta Richardson jarich at perltraining.com.au
Wed Jul 23 01:54:21 CDT 2003


On Wed, 23 Jul 2003, Dayton, Bryan wrote:

> Hi all,
> 
> I've just started on Perl - having just done a two day course - and been
> asked to maintain a heap of perl scripts that are activated via action
> items on html forms. 
> 
> Is it possible turn on perl debugging in this environment (html) so I
> can see what the scripts are doing? 

There is a CGI debugger that someone else can probably tell you the name
of (Scott?).  Alternately, so that you can see what's printed to STDERR
and your warnings you might want to use CGI::Carp.  This is really easy:

!#/usr/bin/perl -w

use strict;
use CGI::Carp qw/fatalsToBrowser/;
use CGI;

.....


you can learn more about CGI::Carp by reading:
	perldoc CGI::Carp

I believe it is also well covered in the Camel book but I don't have one
here to give you page numbers.

All the best and welcome to Perl Mongers Melbourne!

	Jacinta


--
   ("`-''-/").___..--''"`-._          |  Jacinta Richardson         |
    `6_ 6  )   `-.  (     ).`-.__.`)  |  Perl Training Australia    |
    (_Y_.)'  ._   )  `._ `. ``-..-'   |      +613 9354 6001         |  
  _..`--'_..-_/  /--'_.' ,'           | contact at perltraining.com.au |
(il),-''  (li),'  ((!.-'              |   www.perltraining.com.au   |




More information about the Melbourne-pm mailing list