]> source.dussan.org Git - rspamd.git/commitdiff
* use -> require
authorcebka@lenovo-laptop <cebka@lenovo-laptop>
Fri, 12 Mar 2010 17:55:09 +0000 (20:55 +0300)
committercebka@lenovo-laptop <cebka@lenovo-laptop>
Fri, 12 Mar 2010 17:55:09 +0000 (20:55 +0300)
perl/lib/Mail/Rspamd/Client.pm

index 7a94e6e7bba804d301021e03826e319fecb8dc1b..be4fa754c65cf365037858fe37dce2e0db37f77e 100644 (file)
@@ -123,8 +123,8 @@ sub make_ssl_socket {
        my ($host, $port) = @_; 
        
        eval {
-               use IO::Socket::SSL;
-       } or $self->{error} = "IO::Socket::SSL required for imaps";
+               require IO::Socket::SSL;
+       } or$self->{error} = "IO::Socket::SSL required for imaps";
 
        return IO::Socket::SSL->new("$host:$port");
 }
@@ -1196,7 +1196,7 @@ sub process_imap {
 
        if (!$password) {
                eval {
-                       use Term::ReadKey;
+                       require Term::ReadKey;
                        $self->{error} = "Enter IMAP password: ";
                        ReadMode 'noecho';
                        $password = ReadLine 0;