>
> 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
At 12:51 PM +0200 8/17/03, Gerald Richter wrote:
I am not quite sure what the try .. otherwise does internaly, but could you
try what happens with you write
eval { $this-> process ... } ;
if ($@) { ... throw }
does this catch you exception?
try is basically an eval. The problem is that there isn't
> Running 1.x. I want to load a perl module (Execute('*') with import
> set to 0) and then later in the routine call $this->process().
>
> In normal perl code I would do this:
>
> try {
> $this->process($udat{account_id});
> } otherwise {
> my $err = shift;
> $this->Error(0);
>
Running 1.x. I want to load a perl module (Execute('*') with import
set to 0) and then later in the routine call $this->process().
In normal perl code I would do this:
try {
$this->process($udat{account_id});
} otherwise {
my $err = shift;
$this->Error(0);
...
};
But that doesn'