Re: RFC: Logging used Perl Modules (was Re: API Design Question)

2001-07-10 Thread James G Smith
Doug MacEachern [EMAIL PROTECTED] wrote: On Tue, 3 Jul 2001, James G Smith wrote: The current code I have uses %INC, but I wanted to write something like the following: sub use : immediate { # do stuff here if logging return CORE::use(@_); } you could just override

Re: RFC: Logging used Perl Modules (was Re: API Design Question)

2001-07-09 Thread Doug MacEachern
On Tue, 3 Jul 2001, James G Smith wrote: The current code I have uses %INC, but I wanted to write something like the following: sub use : immediate { # do stuff here if logging return CORE::use(@_); } you could just override CORE::GLOBAL::require. you don't need to override the

Re: RFC: Logging used Perl Modules (was Re: API Design Question)

2001-07-03 Thread darren chamberlain
James G Smith [EMAIL PROTECTED] said something to this effect on 07/02/2001: How would something like this do: NAME Apache::Use SYNOPSIS use Apache::Use (Logger = DB, File = /www/apache/logs/modules); DESCRIPTION Apache::Use will record the modules used over the course of the

Re: RFC: Logging used Perl Modules (was Re: API Design Question)

2001-07-03 Thread James G Smith
darren chamberlain [EMAIL PROTECTED] wrote: James G Smith [EMAIL PROTECTED] said something to this effect on 07/02/2001: How would something like this do: NAME Apache::Use SYNOPSIS use Apache::Use (Logger = DB, File = /www/apache/logs/modules); DESCRIPTION Apache::Use will

Re: RFC: Logging used Perl Modules (was Re: API Design Question)

2001-07-03 Thread darren chamberlain
James G Smith [EMAIL PROTECTED] said something to this effect on 07/03/2001: darren chamberlain [EMAIL PROTECTED] wrote: James G Smith [EMAIL PROTECTED] said something to this effect on 07/02/2001: Apache::Use You can get this information from %INC, can't you? e.g.: Most definitely.

Re: RFC: Logging used Perl Modules (was Re: API Design Question)

2001-07-03 Thread Robin Berjon
On Tuesday 03 July 2001 16:46, darren chamberlain wrote: James G Smith [EMAIL PROTECTED] said something to this effect: The current code I have uses %INC, but I wanted to write something like the following: sub use : immediate { # do stuff here if logging return CORE::use(@_);

RFC: Logging used Perl Modules (was Re: API Design Question)

2001-07-02 Thread James G Smith
How would something like this do: NAME Apache::Use SYNOPSIS use Apache::Use (Logger = DB, File = /www/apache/logs/modules); DESCRIPTION Apache::Use will record the modules used over the course of the Perl interpreter's lifetime. If the logging module is able, the old logs are read and