Skip to content

Instantly share code, notes, and snippets.

@EvanCarroll
Created June 19, 2009 16:41
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 EvanCarroll/132721 to your computer and use it in GitHub Desktop.
Save EvanCarroll/132721 to your computer and use it in GitHub Desktop.
package nolocal;
use warnings;
use strict;
use File::Spec ();
our $VERSION = '0.01';
sub import {
my @newinc;
foreach my $dir ( @INC ) {
my @dirs = File::Spec->splitdir( $dir );
push @newinc, $dir
unless grep /^local$/, @dirs
;
}
@INC = @newinc;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment