Sorry -- I should have suspected the debugger. It runs correctly outside the
debugger.

-----Original Message-----
From: Randy W. Sims [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 03, 2005 10:03 PM
To: Siegfried Heintze
Cc: beginners@perl.org
Subject: Re: $@ not working

Siegfried Heintze wrote:
> Does this qualify as a simplified version of the code snippet below?
> eval{
>   print "begin\n";
>   die "throw";
>   print "done main\n";
> };
> if(my $err=$@){
>   print "Exception = $err\n";
> } else {
>   print "No exception\n";
> }
> 
> When I single step thru this with the Open Perl IDE debugger on
ActiveState
> Perl 5.8+, it prints "No Exception". I'm expecting it to print "Exception
=
> throw".
> 
> Is there a bug in my program, a bug in perl, or a bug in me?

What happens outside of the debugger?


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to