Re: Should Test2 maintain $! and $@?
[email protected] (Kent Fredric) Thu, 14 Jan 2016 07:50:18 +1300
| Newsgroups | perl.cpan.workers |
|---|---|
| Message-ID | <CAATnKFCmNcrazUGANwPS1nxmyCt0g0ZMbouWBZd9KT5i4me=vQ@mail.gmail.com> |
On 14 January 2016 at 07:39, Chad Granum <[email protected]> wrote: > Right now the version I have up on cpan just stores them on creation, and > restores them on final release. Nothing happens for nested calls to > context()/release(), all my downstream testing shows no breakages (not a > full smoke, but does include several modules sensitive to $! and $@ > changes). In the event some code like this dies: sub foo { my $context = context(); die "Bar"; } What will happen with regards to $@ auto-stacking? If somebody catches the die in a higher context, what will $@ be? -- Kent KENTNL - https://metacpan.org/author/KENTNL