Code

Fixed some typos
[gosa.git] / gosa-si / modules / ArpWatch.pm
index 95532cb9734a15faa9fdc38bb31f907520516b54..6487ef1013ea832eacd3a49053cbf71137a6e026 100644 (file)
@@ -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 = (