Re: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-25 Thread Doug MacEachern
On 20 Apr 2000, Randal L. Schwartz wrote: > > "Doug" == Doug MacEachern <[EMAIL PROTECTED]> writes: > > Doug> why all the globals?? symbol table lookups are much slower than > Doug> lexicals. > > If I recall, the word lately is that they're much closer than they were. i take it back, the

Re: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-20 Thread Randal L. Schwartz
> "Doug" == Doug MacEachern <[EMAIL PROTECTED]> writes: Doug> why all the globals?? symbol table lookups are much slower than Doug> lexicals. If I recall, the word lately is that they're much closer than they were. But lexicals are still "cleaner", if I recall. -- Randal L. Schwartz - St

Re: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-20 Thread Doug MacEachern
> So this (attached) section is to be deleted now as a non-relevant? i suppose.

RE: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-20 Thread Doug MacEachern
On Mon, 17 Apr 2000, Vivek Khera wrote: > > "SB" == Stas Bekman <[EMAIL PROTECTED]> writes: > > SB> Of course, anyone has a sample section handy? I'm still an > SB> C fan, to be changed soon :) > > I don't see what sections have to do with using or not > Apache::Registry instead of handle

Re: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-20 Thread Stas Bekman
On Thu, 20 Apr 2000, Doug MacEachern wrote: > On Fri, 14 Apr 2000, Stas Bekman wrote: > > > use vars qw($q $switch $status $sessionID); > > why all the globals?? symbol table lookups are much slower than lexicals. > please don't promote globals, pass lexicals to the subroutines. Yeah, I'll

Re: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-20 Thread Doug MacEachern
On Fri, 14 Apr 2000, Stas Bekman wrote: > use vars qw($q $switch $status $sessionID); why all the globals?? symbol table lookups are much slower than lexicals. please don't promote globals, pass lexicals to the subroutines. > sub handler{ > my $r = shift; > Apache->request($r);

RE: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-17 Thread Matt Sergeant
On Mon, 17 Apr 2000, Vivek Khera wrote: > > "MS" == Matt Sergeant <[EMAIL PROTECTED]> writes: > > >> adding handlers as easy as adding Registry scripts. I guess it is > >> sort of an ultra-light-weight Registry, in some sense. > > MS> I've got something pretty similar. Let me know if you w

RE: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-17 Thread Vivek Khera
> "MS" == Matt Sergeant <[EMAIL PROTECTED]> writes: >> adding handlers as easy as adding Registry scripts. I guess it is >> sort of an ultra-light-weight Registry, in some sense. MS> I've got something pretty similar. Let me know if you want some code. Sure; it is always good to see other

Re: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-17 Thread Vivek Khera
> "DT" == Drew Taylor <[EMAIL PROTECTED]> writes: DT> are beginning the transition to Apache handlers. One other thing that I DT> would love is a module to do checkboxes/pull-down list generation ALA DT> CGI.pm. I might rip off some code and create a module myself. I think it Have a look at

Re: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-17 Thread Drew Taylor
Matt Sergeant wrote: > > On Mon, 17 Apr 2000, Vivek Khera wrote: > > > But, I've been toying with the idea of writing an Apache::Dispatch > > module that would take all URL's of the form something like > > > > http://localhost/perl/My/Module/handlerfunc > > > > and dispatch the call to My::Modul

RE: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-17 Thread Matt Sergeant
On Mon, 17 Apr 2000, Vivek Khera wrote: > But, I've been toying with the idea of writing an Apache::Dispatch > module that would take all URL's of the form something like > > http://localhost/perl/My/Module/handlerfunc > > and dispatch the call to My::Module::handlerfunc() > > Assuming that My

RE: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-17 Thread Stas Bekman
On Mon, 17 Apr 2000, Vivek Khera wrote: > > "SB" == Stas Bekman <[EMAIL PROTECTED]> writes: > > SB> Of course, anyone has a sample section handy? I'm still an > SB> C fan, to be changed soon :) > > I don't see what sections have to do with using or not > Apache::Registry instead of handle

RE: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-17 Thread Vivek Khera
> "SB" == Stas Bekman <[EMAIL PROTECTED]> writes: SB> Of course, anyone has a sample section handy? I'm still an SB> C fan, to be changed soon :) I don't see what sections have to do with using or not Apache::Registry instead of handlers... But, I've been toying with the idea of writing a

RE: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-15 Thread Stas Bekman
On Fri, 14 Apr 2000, Chris Nokleberg wrote: > > > Someone has asked how to move from registry scripts to perl handlers, this > > is my attempt to show in details the process. Comments are welcome. > > In my mind, one of the biggest problems in transitioning from > Apache::Registry is the added

RE: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-14 Thread Chris Nokleberg
> Someone has asked how to move from registry scripts to perl handlers, this > is my attempt to show in details the process. Comments are welcome. In my mind, one of the biggest problems in transitioning from Apache::Registry is the added server configuration complexity. Would it be possible to

[RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-14 Thread Stas Bekman
Someone has asked how to move from registry scripts to perl handlers, this is my attempt to show in details the process. Comments are welcome. =head1 Transitioning from Apache::Registry to Apache handlers Even if you are a CGI script die-hard at some point you might want to move a few or all you