projects
/
p5sagit/B-Hooks-EndOfScope-WithFallback.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
7619149f0990c823d27346056bad6e5991b81f6c
[p5sagit/B-Hooks-EndOfScope-WithFallback.git]
/
t
/
eval.t
1
use strict;
2
use warnings;
3
use Test::More tests => 1;
4
5
use B::Hooks::EndOfScope;
6
7
our $called;
8
9
sub foo {
10
BEGIN { on_scope_end { $called = 1 } }
11
12
# uncomment this to make the test pass
13
eval '42';
14
}
15
16
BEGIN {
17
ok($called, 'callback invoked');
18
}