tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Mike McGovern <Michael.McGovern () tcd ! ie>
To: tru64-unix-managers
Subject: SUMMARY: perl Syslog.pm problem on DU4.0A
Date: Mon, 23 Dec 1996 11:45:32 +0000	[thread overview]
Message-ID: <96076343421824.tru64-unix-managers.marc@archive.invalid> (raw)

My original problem was:

Undefined subroutine &Sys::Syslog::hostname called at Syslog.pm line 92.
perl, version 5.003 with EMBED

The solution (supplied by Robert L. McMillin - many thanks):

*** Syslog.pm   Fri Aug 23 22:38:13 1996
--- Syslog.pm.new       Fri Dec 20 13:54:04 1996
***************
*** 7,12 ****
--- 7,13 ----
  @EXPORT = qw(openlog closelog setlogmask syslog);
  
  use Socket;
+ use Sys::Hostname;
  
  # adapted from syslog.pl
  #
***************
*** 89,97 ****
  
  =cut
  
! require 'hostname.pl';
! 
! $host = hostname() unless $host;      # set $Syslog::host to change
  
  require 'syslog.ph';
  
--- 90,96 ----
  
  =cut
  
! $host = Sys::Hostname::hostname() unless $host;       # set
$Syslog::host to change
  
  require 'syslog.ph';


--
I had to apply hunk2 of the patch manually for some reason, but it
worked fine.

 
Thanks also to Hellebo Knut and Ollivier Robert for responding.

  Mike McGovern
  =============

                 reply	other threads:[~1996-12-23 11:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox