From: Roderick Schertler Date: Wed, 4 Sep 1996 00:33:54 +0000 (-0400) Subject: syslog.pl `use Socket' lossage X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8e4ea0b466a4933c45646f1d6fefe96c799d2a72;p=p5sagit%2Fp5-mst-13.2.git syslog.pl `use Socket' lossage syslog.pl tries but fails to use Socket.pm, the problem is that use doesn't return a true value. This module should be recast in terms of Sys::Syslog, of course. --- diff --git a/lib/syslog.pl b/lib/syslog.pl index 29c3a1c..614068e 100644 --- a/lib/syslog.pl +++ b/lib/syslog.pl @@ -37,7 +37,7 @@ if ($] >= 5) { require 'syslog.ph'; - eval 'use Socket' || + eval 'use Socket; 1' || eval { require "socket.ph" } || require "sys/socket.ph";