Skip to content

Instantly share code, notes, and snippets.

@aereal
Created Dec 21, 2016
Embed
What would you like to do?
use strict;
use warnings;
use Test::More;
ok not exists $INC{'URI.pm'};
(sub {
local %INC = %INC;
require URI;
ok exists $INC{'URI.pm'};
})->();
ok not exists $INC{'URI.pm'};
done_testing;
@aereal
Copy link
Author

aereal commented Dec 21, 2016

t/inc.t ............................ 
ok 1
ok 2
ok 3
1..3
PASS ---

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment