in reply to CGI::Carp Doesnt seem to work properly
[that would be perl -c ... thanks Enlil ;) ]
It is intended for redirecting warnings and run-time errors, but not syntax errors [ UPDATE - this is simply wrong ... CGI::Carp is intended to handle syntax/compile time errors. Looks like this may be a bug introduced in version 1.24. See below ]You could wrap the code in question in an eval block, but it's easier to test the syntax on a command line.use strict; use warnings; use CGI::Carp qw(fatalsToBrowser warningsToBrowser); warningsToBrowser(1); if(my $foo == 'bar') { die "yes"; }
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) Re: CGI::Carp Doesnt seem to work properly
by theAcolyte (Pilgrim) on May 22, 2003 at 08:31 UTC |