The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use warnings;
use Test::More tests => 2;
use Env::Sanctify;

my $save = scalar keys %ENV;

my $sanctify = Env::Sanctify->sanctify(
		sanctify => [ '.*' ],
);

ok( scalar keys %ENV == 0, 'There is nothing in the %ENV' );
$sanctify->restore();
ok( scalar keys %ENV == $save, 'Okay there is stuff again in the %ENV' );