Return-Path: Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 73928 invoked by uid 500); 18 Aug 2003 03:55:06 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 73911 invoked from network); 18 Aug 2003 03:55:05 -0000 Received: from saturn.ecos.de (217.7.64.130) by daedalus.apache.org with SMTP; 18 Aug 2003 03:55:05 -0000 Received: from lnx1.i.ecos.de (neptun.ecos.de [217.7.64.151]) by saturn.ecos.de (Postfix) with ESMTP id 50AF3D8849; Mon, 18 Aug 2003 05:55:13 +0200 (MET DST) Received: from laptop (unknown [10.11.12.250]) by lnx1.i.ecos.de (Postfix) with SMTP id 0BF2310AD17; Mon, 18 Aug 2003 05:55:12 +0200 (MEST) Message-ID: <014d01c3653c$745ef850$fa0c0b0a@laptop> From: "Gerald Richter" To: "Kee Hinckley" Cc: References: <003f01c364ad$92baa090$fa0c0b0a@laptop> Subject: Re: Trapping errors from embperl subroutines Date: Mon, 18 Aug 2003 05:54:40 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > try is basically an eval. The problem is that there isn't an > exception. Embperl catches the exception in it's eval, logs it to > apache, and then returns with Error() set to some value. Is your sub a pure Perl sub e.g. [! sub foo { } !] or a Embperl sub e.g [$sub$] ... ? For the first one it should work in Embperl 1.x, for the second form it will only work in 2.x due to the way Embperl calls the Perl code internaly in 1.x. Sorry, I didn't though of this difference yesterday Gerald --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org