Fix tests on space-containing paths RT#77528
[p5sagit/namespace-clean.git] / lib / namespace / clean / _PP_OSE_5_8.pm
CommitLineData
b2e54862 1package # hide from the pauses
2 namespace::clean::_PP_OSE_5_8;
3
4use warnings;
5use strict;
6
b2e54862 7# This is the original implementation, which sadly is broken
8# on perl 5.10+ withing string evals
9sub on_scope_end (&) {
10 $^H |= 0x020000;
11
aabe8f1c 12 push @{
13 $^H{'__namespace::clean__guardstack__'}
14 ||= bless ([], 'namespace::clean::_PP_SG_STACK')
15 }, shift;
b2e54862 16}
17
aabe8f1c 18package # hide from the pauses
19 namespace::clean::_PP_SG_STACK;
20
21use warnings;
22use strict;
23
24sub DESTROY { $_->() for @{$_[0]} }
25
b2e54862 261;