diff options
| author | 2015-09-24 01:32:11 +0000 | |
|---|---|---|
| committer | 2015-09-24 01:32:11 +0000 | |
| commit | 9b472795d26cd93d1bb58488ef60a062f5237295 (patch) | |
| tree | 8572778595d145176e720a1b7168c73adbd64ed4 /meta.pl | |
| parent | b93c3a24f14e0f64bc46b4945a65ae1bba62dc12 (diff) | |
Rework module paths
Diffstat (limited to 'meta.pl')
| -rwxr-xr-x | meta.pl | 26 |
1 files changed, 15 insertions, 11 deletions
@@ -1,12 +1,11 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl -use lib '/home/icxcnika/AntiSpamMeta'; - -#use Devel::Profiler package_filter => sub { return 0 if $_[0] =~ /^XML::Simple/; return 1; }; +use strict; +use warnings; +use FindBin; +use lib "$FindBin::Bin/lib";; -use warnings; -use strict; use Net::IRC; use Data::Dumper; use IO::All; @@ -18,6 +17,16 @@ use feature qw(say); use HTTP::Async; use Carp; +use ASM::Util; +use ASM::XML; +use ASM::Inspect; +use ASM::Event; +use ASM::Services; +use ASM::Log; +use ASM::Commander; +use ASM::Classes; +use ASM::DB; + $Data::Dumper::Useqq=1; $::pass = ''; @@ -72,11 +81,6 @@ sub alarmdeath $SIG{ALRM} = \&alarmdeath; alarm 300; -BEGIN { -my @modules = qw/Util Xml Inspect Event Services Log Command Classes Mysql/; -require 'modules/' . lc $_ . '.pl' foreach @modules; -} - sub init { my ( $conn, $host ); my $irc = new Net::IRC; |
