From: janw Date: Wed, 30 Jan 2008 17:06:42 +0000 (+0000) Subject: Added evals X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b0f4b5b4dd694c4c8dc66c491f7b78f2989c1b04;p=gosa.git Added evals git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8681 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/ArpWatch.pm b/gosa-si/modules/ArpWatch.pm index 95532cb97..6487ef101 100644 --- a/gosa-si/modules/ArpWatch.pm +++ b/gosa-si/modules/ArpWatch.pm @@ -2,13 +2,17 @@ package POE::Component::ArpWatch; use strict; +use warnings; -use POE; - -use POE::Component::Pcap; +BEGIN{ + eval('use POE'); + eval('use POE::Component::Pcap'); + eval('use NetPacket::Ethernet qw( :types )'); + eval('use NetPacket::ARP qw( :opcodes )'); +} -use NetPacket::Ethernet qw( :types ); -use NetPacket::ARP qw( :opcodes ); +END{ +} ## Map arp opcode #'s to strings my %arp_opcodes = (