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 symbol table
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 fix
"SB" == Stas Bekman [EMAIL PROTECTED] writes:
SB Of course, anyone has a sample Perl section handy? I'm still an
SB CApache::Registry fan, to be changed soon :)
I don't see what Perl sections have to do with using or not
Apache::Registry instead of handlers...
But, I've been toying with the
On Mon, 17 Apr 2000, Vivek Khera wrote:
"SB" == Stas Bekman [EMAIL PROTECTED] writes:
SB Of course, anyone has a sample Perl section handy? I'm still an
SB CApache::Registry fan, to be changed soon :)
I don't see what Perl sections have to do with using or not
Apache::Registry instead
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
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
"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
"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 ideas...
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 want some code.
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
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
On Mon, 3 Apr 2000, Drew Taylor wrote:
In light of the recent "performance monger" thread, I am interested in
information about transitioning from Registry scripts to Apache
handlers. Here is my situation, which I'm guessing is pretty common.
[...]
use Search;
use CGI;
my $q = new CGI;
my
Perrin Harkins wrote:
That should be pretty easy to convert, since you already have your main
program logic off in a separate module.
So I just write a small handler which does the same thing as the .pl
script and add a Location /cgi-bin/search.pl directive to use this
handler? That sounds
On Mon, 3 Apr 2000, Drew Taylor wrote:
So I just write a small handler which does the same thing as the .pl
script and add a Location /cgi-bin/search.pl directive to use this
handler?
Yes, that should work fine.
And I would need to setup a Location directive for each function
(Search,
On Mon, 3 Apr 2000, Drew Taylor wrote:
So I just write a small handler which does the same thing as the .pl
script and add a Location /cgi-bin/search.pl directive to use this
handler?
Yes, that should work fine.
And I would need to setup a Location directive for each function
Ahh yes, the Perl Sections... I've read briefly about them, but have
not used it yet. Looks like I'll be learning it soon. I have many sites
coming online in the near future that will have nearly identical setups
like this one.
Thanks Stas.
Stas Bekman wrote:
On Mon, 3 Apr 2000, Drew Taylor
16 matches
Mail list logo