×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Perl
Posted by: Ben Valentine
Added: Jan 6, 2017 4:05 PM
Modified: Jan 6, 2017 4:32 PM
Views: 12
Tags: no tags
Changes the include directory relative to the current script.
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4.  
  5. use File::Basename qw(dirname);
  6. use Cwd  qw(abs_path);
  7. use lib dirname(dirname abs_path $0);