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

Re: [MacPerl] First Steps - Scripts On HTTP Server



At 6.16 -0400 1999.06.10, Bart Lateur wrote:
>BTW I think this question belongs more in the "MacPerl-AnyPerl" list.

Me too.  Or macperl-webcgi.

>Try temporarily putting this code at the start of the script:
>
>	BEGIN {
>		print "Content-type: text/plain\n\n";
>		open STDERR,'>&STDOUT';
>	}
>
>This will send Perl's syntax error messages etc. to the browser. It sure
>will help debugging scripts on a remote webserver. Remove the line if it
>looks like it will work.

FWIW, I often use this to do the same basic thing:

   use CGI::Carp 'fatalsToBrowser';

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org