Skip to content

Instantly share code, notes, and snippets.

@aereal
Created December 21, 2016 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aereal/40a16741d25a1c789a20e917ac871ac5 to your computer and use it in GitHub Desktop.
Save aereal/40a16741d25a1c789a20e917ac871ac5 to your computer and use it in GitHub Desktop.
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