Created
June 25, 2012 02:02
-
-
Save wakaba/2985990 to your computer and use it in GitHub Desktop.
Perl script template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
BEGIN { | |
my $file_name = __FILE__; | |
$file_name =~ s{[^/\\]+$}{}; | |
$file_name ||= '.'; | |
$file_name .= '/../config/perl/libs.txt'; | |
open my $file, '<', $file_name or die "$0: $file_name: $!"; | |
unshift @INC, split /:/, scalar <$file>; | |
} | |
use warnings; | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment