-Original Message-
From: Barrie Slaymaker [mailto:[EMAIL PROTECTED]]
>[EMAIL PROTECTED] wrote:
>>
>> It basically allows the programmer to "try" a certain action and see what
the
>> effects are going to be (i.e. handle the exception) so that some action
can
>> then be taken based on the r
Hmm this gets me thinking:
-Original Message-
From: Tony Olekshy [mailto:[EMAIL PROTECTED]]
Or, with try/catch...
sub openrecord
{
for (my $attempt = 0; $attempt < 5; ++$attempt) {
my $fileName = &GetRecordFileName;
try { open REC, $fileName; }
-Original Message-
From: Peter Scott [mailto:[EMAIL PROTECTED]]
or even the cooler
throw Exception::MyDB "ABC.1234" => "Some message about what went
wrong"
O! I like that! I guess I might come to love C after all.
I think it would be best to supply a reference. This
-Original Message-
From: Tony Olekshy [mailto:[EMAIL PROTECTED]]
So, now you can say:
catch grep { $_->isa("Foo") } @@ { ... }
Ok, I think I could learn that.
"Brust, Corwin" wrote:
>
> In the context of a catch block, if could @_ contain th
[snip]
-Original Message-
From: Chaim Frenkel [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 22, 2000 12:43 AM
To: Tony Olekshy
Cc: [EMAIL PROTECTED]
Subject: Re: RFC 88: Possible problem with shared lexical scope.
Could you tell me why you would want two finallys?
Why not put them i
[snip]
-Original Message-
From: Markus Peter [mailto:[EMAIL PROTECTED]]
Another way to achieve the same result would be to NOT get rid of the try
part of try/catch and then try automatically implies use fatal for that
block...
--
Markus Peter
[EMAIL PROTECTED]
[/snip]
So that was:
# # -Original Message-
# # From: Tony Olekshy [mailto:[EMAIL PROTECTED]]
# # Sent: Tuesday, August 22, 2000 4:01 PM
# # To: [EMAIL PROTECTED]
# # Subject: Re: Exception stack: let's use the @@ list.
# # Peter Scott wrote:
# # >
# # > Brust, Corwin wrote:
# # > >
# #
-Original Message-
From: Tony Olekshy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 22, 2000 6:27 PM
To: [EMAIL PROTECTED]
Subject: Re: Exception stack: let's use the @@ list.
That's well and good, but the source code syntax says it's a block,
not a sub. Am I supposed to spend the r
-Original Message-
From: Tony Olekshy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 22, 2000 8:26 PM
To: [EMAIL PROTECTED]
Subject: Re: Exception stack: let's use the @@ list.
> Ok, uncle.
Thanks.
Hey, when your right...
> I think C was already going to operate on $@ by default