Calling keys() (or values()) in void context is quite efficient.
Nice to now. So it seems the correct idiom for using each is:
keys %hash;
while( my($k,$v) = each %hash ) {
...
}
p.s. I've shown an example, so we can have this issue documented
together with other mod_perl
Hi there,
On Mon, 16 Jun 2003, Ryan Dietrich wrote:
mod_perl on Solaris
Thanks for the tips!
things ended up being ridiculously stable (they haven't rebooted since last
February I'm told)..
Hehe:
www2:~$ top -bn1 | head
9:57am up 421 days, 19:57, 1 user, load average: 0.03, 0.10,
Marcin Kasperski wrote:
Calling keys() (or values()) in void context is quite efficient.
Nice to now. So it seems the correct idiom for using each is:
keys %hash;
while( my($k,$v) = each %hash ) {
...
}
Looks like it. probably with a comment so you (or other readers) won't
Stas Bekman wrote:
[...]
BTW, Eric is working on creating a new site for http://modperlbook.org/
which will include the source code, errata and other useful information.
We will let you know when this work has been completed.
I've just put it online.
Enjoy,
--
Eric Cholet
Hi guys,
On Mon, 16 Jun 2003, Stas Bekman wrote:
[snip,snip]
keys %hash;
does the trick
interesting that I don't remember this issue being reported earlier.
Probably because we all read the Camel Book, section 5.4.3, the bit
about FIRSTKEY. All except Randal that is... :)
Most people
Ged Haywood wrote:
[...]
Most people when iterating over a hash will say something like
foreach $scalar_name ( keys %hash_name ) { ... }
which automatically resets the iterator and is safe in a perisitent
Perl environment like mod_perl. I hope.
That's a good point, Ged. Marcin, please include
I did a search for UTF-8 and locale at
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/
In the past 2-3 months the only problem seems to be that regex doesnt
seem to work properly on UTF-8 input
[http://www.xray.mpe.mpg.de/cgi-bin/w3glimpse2html/perl5-porters/2003-05/msg00183.html?68#mfs]
I had a look at the memory usage of my apache/mod_perl 1 processes, and was alarmed to find that only 3Mb of 25Mb processes was being shared (and that's straight after startup)
I have gone to great lengths to
(1) Preload modules in my startup file
(2) Load shared config data during server
On Mon, 2003-06-16 at 12:12, Clinton Gormley wrote:
I had a look at the memory usage of my apache/mod_perl 1 processes, and was alarmed to find that only 3Mb of 25Mb processes was being shared (and that's straight after startup)
I have gone to great lengths to
(1) Preload
Marcin == Marcin Kasperski [EMAIL PROTECTED] writes:
Marcin Maybe it could be of some interest where I happened to get this
Marcin problem. I got it in my custom TransHandler implemented to reduce stat
Marcin calls and to obtain 'select from multiple directories' effect.
Marcin ... (config
Randal == Randal L Schwartz [EMAIL PROTECTED] writes:
Randal our @STATIC_FILES = (
Randal [ qr{^/img/(.*)$} = [ qw(/alternative/img /myapp/install/img) ],
Randal [ qr{^/css/(.*)$} = [ qw(/alternative/css /myapp/install/css) ],
Argh. extra left bracket snuck in.
[
I have a opportunity to upgrade and standardize a couple of mod_perl
enabled servers to the most stable configuration as of now. Apache 1.3
and mod_perl was easy to choose since it is a production environment.
What I am very much confused is to what should I chose for the
distribution. For various
Hi there,
On 16 Jun 2003, Clinton Gormley wrote:
I had a look at the memory usage of my apache/mod_perl 1 processes,
and was alarmed to find that only 3Mb of 25Mb processes was being
shared (and that's straight after startup)
I see about the same on my own server when processes get
Hi there,
On Mon, 16 Jun 2003, Mithun Bhattacharya wrote:
I have a choice between the very well tested 7.3 but highly likely
to become unsupported by RedHat soon. Or I could go for RedHat 9.0
A distribution is just a package of stuff that you could put together
yourself if you had the time
On Mon, 2003-06-16 at 13:03, Ged Haywood wrote:
I had a look at the memory usage of my apache/mod_perl 1 processes,
and was alarmed to find that only 3Mb of 25Mb processes was being
shared (and that's straight after startup)
I see about the same on my own server when processes get
--- Ged Haywood [EMAIL PROTECTED] wrote:
Hi there,
On Mon, 16 Jun 2003, Mithun Bhattacharya wrote:
I have a choice between the very well tested 7.3 but highly likely
to become unsupported by RedHat soon. Or I could go for RedHat 9.0
Ohh no no one is using RedHat support it is just the
Hi There,
On 16 Jun 2003, Clinton Gormley wrote:
On Mon, 2003-06-16 at 13:03, Ged Haywood wrote:
I had a look at the memory usage of my apache/mod_perl 1 processes,
and was alarmed to find that only 3Mb of 25Mb processes was being
shared (and that's straight after startup)
But
Hi there,
On Mon, 16 Jun 2003, Mithun Bhattacharya wrote:
[snip]
RedHat 7.3 has the notorious gcc 2.96 - no body has been able to
figure out whether it is actually broken or not I guess :).
[snip]
Whether it's broken or not it was never released, it escaped. :)
The developers called it a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Thursday 12 June 2003 08:22, ECE Webmaster wrote:
Hi ,
I am having a problem with an application that I am running on an
Apache server. It says that it is unable to load the script. I have
chmod all things to 777.
My application is at
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Monday 16 June 2003 05:02, Mithun Bhattacharya wrote:
I have a opportunity to upgrade and standardize a couple of mod_perl
enabled servers to the most stable configuration as of now. Apache 1.3
and mod_perl was easy to choose since it is a
Hi!
Is there a list of CPAN modules that have already been ported to work
with mod_perl2? If so, can I add my two modules to it?
(Apache::AuthNetLDAP and Apache::AuthzNetLDAP).
thanks,
speeves
cws
I am trying to use AuthenNTLM. I put an .htaccess file in a directory and
when I try to access the URL for the directory, it gives me an internal
server error. The apache error log contains:
Can't call method connection on an undefined value at
On Sun, Jun 15, 2003 at 02:44:02PM +0800, Philippe M. Chiasson wrote:
[...]
This could be related to a recently discovered bug in
mp_preload_module(), see
http://marc.theaimsgroup.com/?t=10553271073r=1w=2
for the original report.
That is a possiblity. I am preloading Project::Control,
sub handler {
my $r = shift;
my $uri = $r-uri;
... detecting dynamic handlers ...
while( my($url, $dirs) = each %STATIC_FILES ) {
if( $uri =~ m{$url/(.*)$} ) {
foreach my $d (@$dirs) {
my $file = $d/$1;
if( -f
I am trying to use AuthenNTLM. I put an .htaccess file in a directory
and when I try to access the URL for the directory, it gives me an
internal server error. The apache error log contains:
Can't call method connection on an undefined value at
I'm new to this list. Last attempt didn't seem to post. Her it is again...
I am trying to use AuthenNTLM. I put an .htaccess file in a directory and
when I try to access the URL for the directory, it gives me an internal
server error. The apache error log contains:
Can't call method
Hi there,
I am having trouble making open3 work with perl, v5.6.1 built for
i386-linux.
I am running Apache/1.3.27 Ben-SSL/1.48 (Unix) PHP/4.2.3 mod_perl/1.27.
My problem is that I can't write to STDIN. Does any one know of any
solution to this problem? Has any one encountered the same issue?
--
mod_perl digest
June 2, 2003 - June 15, 2003
--
Recent happenings in the mod_perl world...
Features
o
Marcin Kasperski wrote:
sub handler {
my $r = shift;
my $uri = $r-uri;
... detecting dynamic handlers ...
while( my($url, $dirs) = each %STATIC_FILES ) {
if( $uri =~ m{$url/(.*)$} ) {
foreach my $d (@$dirs) {
my $file = $d/$1;
if( -f
Hi,
when I am executing perl scripton Apache it
seems that the current directory is not the directory where the script is
locatedbut the directory c:\program files\apache group\apache. I need
current dir to be the script dir since i have some pm in the script
directories.
I have apache
Clinton Gormley wrote:
On Mon, 2003-06-16 at 13:03, Ged Haywood wrote:
/ I had a look at the memory usage of my apache/mod_perl 1 processes,
and was alarmed to find that only 3Mb of 25Mb processes was being
shared (and that's straight after startup)
I see about the same on my own server when
Mithun Bhattacharya wrote:
I have a opportunity to upgrade and standardize a couple of mod_perl
enabled servers to the most stable configuration as of now. Apache 1.3
and mod_perl was easy to choose since it is a production environment.
What I am very much confused is to what should I chose for
Shannon Eric Peevey wrote:
Hi!
Is there a list of CPAN modules that have already been ported to work
with mod_perl2?
Not at the moment, but it's a great idea. Where should we add it? I suppose
that this should be a short-life document and eventually it will be removed.
So we can put it
Rasoul Hajikhani wrote:
Hi there,
I am having trouble making open3 work with perl, v5.6.1 built for
i386-linux.
I am running Apache/1.3.27 Ben-SSL/1.48 (Unix) PHP/4.2.3 mod_perl/1.27.
My problem is that I can't write to STDIN. Does any one know of any
solution to this problem? Has any one
Hello, last week I asked about the problem I had with the partial uploaded
files,and how Apache::Request never got the error code correctly. (By the way,
thanks for the answer, looks like a bug) Well, the solution for me was to use
Apache read() and parse the incoming data myself. Uf, what a job!
Hello Marcin Kasperski,
Tuesday, June 17, 2003, 3:13:23 AM, you wrote:
sub handler {
my $r = shift;
my $uri = $r-uri;
... detecting dynamic handlers ...
while( my($url, $dirs) = each %STATIC_FILES ) {
if( $uri =~ m{$url/(.*)$} ) {
foreach my $d
Hello Hector Pizarro,
Tuesday, June 17, 2003, 1:47:04 PM, you wrote:
HP Hello, last week I asked about the problem I had with the partial uploaded
HP files,and how Apache::Request never got the error code correctly. (By the way,
HP thanks for the answer, looks like a bug) Well, the solution for
37 matches
Mail list logo