Thank you all very much.
This has been a big help.
This is what I was looking for.
--Alex
On 5/31/07, Bob Rogers [EMAIL PROTECTED] wrote:
From: Gyepi SAM [EMAIL PROTECTED]
Date: Thu, 31 May 2007 15:22:32 -0400
Hi Alex,
What you're asking is possible, especially since you only
AB == Alex Brelsfoard [EMAIL PROTECTED] writes:
AB Thank you all very much.
AB This has been a big help.
AB This is what I was looking for.
depending on what Foo() does, it can be called with magic goto and error
can be called with that as well. then when error returns it will be as
if
Use die() or croak() paired with eval() for exception-passing.
use Carp qw(carp croak);
sub Plort {
...
...
eval { Foo() };
if ($@) {
carp Onoz, an error!!;
do_something_with_error($@);
}
...
}
sub Foo {
...
...
croak(Error());
...
}
Alernately, have the Error sub throw the
Hi Alex,
What you're asking is possible, especially since you only asked for quick and
easy
and said nothing about elegant ;)
The situation you describe is known as a 'condition' in Lisp, which allows
you to define the catch and handle exceptional conditions in your program,
including
On Thursday 31 May 2007, Alex Brelsfoard wrote:
Hi All,
I'm looking for a quick and easy way to have this situation happen:
sub Plort {
...
...
Foo();
...
}
sub Foo {
...
...
Error();
...
}
I want it to happen that when Error() is called, when
On Thu, May 31, 2007 at 03:22:32PM -0400, Gyepi SAM wrote:
Here's an example.
Small editing error with my example: the '__END__' should be after the call to
Plort().
-Gyepi
+ Plort();
+
+ __END__
instead of
- __END__
-
- Plort();
___
From: Gyepi SAM [EMAIL PROTECTED]
Date: Thu, 31 May 2007 15:22:32 -0400
Hi Alex,
What you're asking is possible, especially since you only asked for
quick and easy and said nothing about elegant ;)
The situation you describe is known as a 'condition' in Lisp, which allows