>
> 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
I'm sorry Gerald.
I found the error. I use the onbeforeunload event on my template page.
In this manner the page was submitted two times, when the user press
buttom quit and by onbeforeunload. The problem was that this error no
occur always. (500 internal error by aplication). I'm sorry.
Thank yo
>I have an epl file that mount an screen for download of files and when
>the user click "quit" button (after user download an file), the same epl
file when submited >remove temporary files and on, onload of html page, the
javascript close the window.
>
>When the user press Quit, the epl file in se
> 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);
>