Subject: | Its not working for me |
This module isn't working for me. Is there something I'm not understanding. I'm on Ubuntu and using perlbrew with perl v5.16.3 and B::Hooks::EndOfScope v0.15. I've also tried using B::Hooks::EndOfScope::PP and B::Hooks::EndOfScope::XS but that doesn't help.
$ cat a
#!/usr/bin/env perl
use strict;
use warnings;
use B::Hooks::EndOfScope;
my $a = yo();
print "$a\n";
sub yo {
print "1\n";
on_scope_end { what() };
print "2\n";
return '4';
}
sub what {
print "3\n";
}
$ perl a
1
2
4
Thanks!
- Kablamo