develooper Front page | perl.perl6.language | Postings from February 2001

Re: End-of-scope actions: do/eval duality.

Thread Previous | Thread Next
From:
Glenn Linderman
Date:
February 13, 2001 11:35
Subject:
Re: End-of-scope actions: do/eval duality.
Message ID:
3A898C74.D27DA10A@Linderman.com
Tony Olekshy wrote:

> Traditionally Perl has had both the "do" and the "eval" block
> forms, the latter which traps, the former which doesn't.

In the perl 5 pocket reference 3rd edition page 63, it claims that $@ is
set to the result of an eval or do.  How does this impact exception
handling tests on $@ to determine if an exception was thrown, if $@ can
be set by a do ?  OR is that an error in the pocket guide?

--
Glenn
=====
Even if you're on the right track,
you'll get run over if you just sit there.
                       -- Will Rogers
----- Stuff below this added by NetZero -----



Shop online without a credit card
http://www.rocketcash.com
RocketCash, a NetZero subsidiary

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About