Re: [Boston.pm] Calling a function that will return to where the grandparent called the parent

2007-06-01 Thread Alex Brelsfoard
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

Re: [Boston.pm] Calling a function that will return to where the grandparent called the parent

2007-06-01 Thread Uri Guttman
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

Re: [Boston.pm] Calling a function that will return to where the grandparent called the parent

2007-05-31 Thread Jason McIntosh
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

Re: [Boston.pm] Calling a function that will return to where the grandparent called the parent

2007-05-31 Thread Gyepi SAM
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

Re: [Boston.pm] Calling a function that will return to where the grandparent called the parent

2007-05-31 Thread Shlomi Fish
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

Re: [Boston.pm] Calling a function that will return to where the grandparent called the parent

2007-05-31 Thread Gyepi SAM
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(); ___

Re: [Boston.pm] Calling a function that will return to where the grandparent called the parent

2007-05-31 Thread Bob Rogers
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