perl-nocem

Miquel van Smoorenburg list-inn-workers at news.cistron.nl
Tue May 15 20:47:21 UTC 2001


In article <20010515135411.B2433 at wonderland.linux.it>,
Marco d'Itri <md at Linux.IT> wrote:
>(does somebody know how to
>load Time::Hires only if the module has been installed?).

BEGIN {
	eval "use Time::Hires";
	$::HAVE_TIME_HIRES = ($@ eq "");
}

or perhaps the way syslog is being handled:

># initialization and main loop ###############################################
>
>eval { require Sys::Syslog; import Sys::Syslog; $use_syslog = 1; };
>
>if ($use_syslog) {

Mike.

-- 
The From: and Reply-To: addresses are internal news2mail gateway addresses.
Reply to the list or to miquels at cistron-office.nl (Miquel van Smoorenburg)


More information about the inn-workers mailing list