Created
April 18, 2012 14:06
-
-
Save r4um/2413821 to your computer and use it in GitHub Desktop.
load perlmods
This file contains hidden or 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
$modules_dir="$Bin/modules"; | |
$modules_file="$modules_dir/module_order"; | |
open(MOD_ORDER,$modules_file) or die "[-] Error: Could not open module order file, $!.\n"; | |
my @MODULES=<MOD_ORDER>; | |
close($modules_file); | |
foreach my $module (@MODULES) { | |
next if $module =~ /^#/; # skip # | |
chomp($line); | |
$module =~ s/\s+//; | |
$module =~ s/\s+$//; | |
next if $module eq ""; | |
require "$modules_dir/$module.hm"; | |
&$module; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment