added needed use directive
[monkeysphere-validation-agent.git] / Crypt / Monkeysphere / MSVA / Monitor.pm
index 693e61aa0b8c1c1d5146abba708cc293d38cf19c..8dae0de0ca76187727fb7bcb77b10e8138f3398a 100644 (file)
@@ -23,6 +23,7 @@
 
 { package Crypt::Monkeysphere::MSVA::Monitor;
 
+  use Module::Load::Conditional;
   use strict;
   use warnings;
 
@@ -108,7 +109,7 @@ Would you like to restart the validation agent?");
 
     require Linux::Inotify2;
 
-    $self->{inotify} = new Linux::Inotify2
+    $self->{inotify} = Linux::Inotify2::->new()
       or die "unable to create new inotify object: $!";
 
     my $flags = 0xc06;