From b0f4b5b4dd694c4c8dc66c491f7b78f2989c1b04 Mon Sep 17 00:00:00 2001 From: janw Date: Wed, 30 Jan 2008 17:06:42 +0000 Subject: [PATCH] Added evals git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8681 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/ArpWatch.pm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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 = ( -- 2.30.2