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

Exceptions question

Thread Next
From:
Timothy S. Nelson
Date:
February 25, 2009 19:05
Subject:
Exceptions question
Message ID:
alpine.LRH.1.10.0902261404400.3209@gwalcmai.nelson.org.au
 	S04 says:

Because the contextual variable C<$!> contains all exceptions collected in the
current lexical scope, saying C<die $!> will throw all exceptions,
whether they were handled or not.  A bare C<die>/C<fail> takes C<$!> as the
default argument.

 	Does this mean that $! is a container of some sort?

---------------------------------------------------------------------
| Name: Tim Nelson                 | Because the Creator is,        |
| E-mail: wayland@wayland.id.au    | I am                           |
---------------------------------------------------------------------

----BEGIN GEEK CODE BLOCK----
Version 3.12
GCS d+++ s+: a- C++$ U+++$ P+++$ L+++ E- W+ N+ w--- V- 
PE(+) Y+>++ PGP->+++ R(+) !tv b++ DI++++ D G+ e++>++++ h! y-
-----END GEEK CODE BLOCK-----


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