Re: RFC: Logging used Perl Modules

2001-07-03 Thread James G Smith
darren chamberlain <[EMAIL PROTECTED]> wrote: >James G Smith <[EMAIL PROTECTED]> said something to this effect on 07/03/2001: >> sub use : immediate { >> # do stuff here if logging >> return CORE::use(@_); >> } > >To go OT here, what would 'immediate' be doing here, if Perl >supported it? It

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

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 t

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"); >> >> DESCRI

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.: > >

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 COR

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

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 overri