ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Guard/Guard.pm
(Generate patch)

Comparing Guard/Guard.pm (file contents):
Revision 1.11 by root, Sat Dec 13 18:51:19 2008 UTC vs.
Revision 1.12 by root, Sat Dec 13 18:53:30 2008 UTC

169Therefore, whenever a guard block throws an exception, it will be caught, 169Therefore, whenever a guard block throws an exception, it will be caught,
170and this module will call the code reference stored in C<$Guard::DIED> 170and this module will call the code reference stored in C<$Guard::DIED>
171(with C<$@> set to the actual exception), which is similar to how most 171(with C<$@> set to the actual exception), which is similar to how most
172event loops handle this case. 172event loops handle this case.
173 173
174The default for C<$Guard::DIED> is to call C<warn "$@">.
175
176The C<$@> variable will be restored to its value before the guard call in
177all cases, so guards will not disturb C<$@> in any way.
178
174The code reference stored in C<$Guard::DIED> should not die (behaviour is 179The code reference stored in C<$Guard::DIED> should not die (behaviour is
175not guaranteed, but right now, the exception will simply be ignored). 180not guaranteed, but right now, the exception will simply be ignored).
176
177The default for C<$Guard::DIED> is to call C<warn "$@">.
178 181
179=head1 AUTHOR 182=head1 AUTHOR
180 183
181 Marc Lehmann <schmorp@schmorp.de> 184 Marc Lehmann <schmorp@schmorp.de>
182 http://home.schmorp.de/ 185 http://home.schmorp.de/

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines