in reply to CGI::Carp won't send fatalsToBrowser
#!/usr/bin/perl -w use strict; print "Content-type: text/plain\n\n"; eval { require 'foo.pl'; } if ($@) { print "ERROR:\n\n$@"; } else { print "OUTPUT:\n\n"; print `perl foo.pl`; # that's `, not ' }
hth
cLive ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: CGI::Carp won't send fatalsToBrowser
by George_Sherston (Vicar) on Dec 13, 2001 at 02:23 UTC | |
by cLive ;-) (Prior) on Dec 13, 2001 at 05:22 UTC | |
by George_Sherston (Vicar) on Dec 13, 2001 at 19:17 UTC |