Re: non-stop generational modperl config update strategies?

2010-04-26 Thread Jeff McCarrell
Thanks to Perrin and Torsten for their input. I will be investigating Torsten's MMapDB, and will report results in a few weeks. -- jeff

RE: Is this an acceptable way to multipurpose a sub?

2010-04-26 Thread israel . leiva
> I'm sure someone where will pipe in a better way, but you could pass via a > hash, something like > > ($result_code, $error) = submit_changes({ 'apache_request' = >$r, > 'user_name' => \...@user_names, > 'latest_news' => $latest_news_file, 'archived_news' =>$archived_news_file, > 'cgi_obj' =>

RE: Is this an acceptable way to multipurpose a sub?

2010-04-26 Thread cfaust-dougot
I'm sure someone where will pipe in a better way, but you could pass via a hash, something like ($result_code, $error) = submit_changes({ 'apache_request' = >$r, 'user_name' => \...@user_names, 'latest_news' => $latest_news_file, 'archived_news' =>$archived_news_file, 'cgi_obj' =>$q); sub

Is this an acceptable way to multipurpose a sub?

2010-04-26 Thread Chris Bennett
I am combining into my module, subs for two scripts doing very similar, yet a little different functions. Many subs can be used by both unchanged. Some are almost right except for the arguments One script works on two output files at once, the other, just one. So I did this and it seems to work

Re: Getting a / when regex should produce nothing

2010-04-26 Thread André Warnier
cr...@animalhead.com wrote: ... But you left out one important caveat which could scare away more potential users than it saves. The retention of values from previous executions applies only to global variables. Ah, yes. But that would have triggered another discussion (which it might now sti

Re: Getting a / when regex should produce nothing

2010-04-26 Thread Michael Ludwig
André Warnier schrieb am 26.04.2010 um 10:22:18 (+0200): > $article_file = $q->param("articlefilename"); > $article_file = $q->param("articlefilename") || ''; > does not add much technically True, but no benefit either, other than telling the reader that the empty string is your default value, w

Re: Getting a / when regex should produce nothing

2010-04-26 Thread craig
Thank you, AW, for a well-written summary of the aspect of mod_perl that causes the most difficult/nasty bugs for people. But you left out one important caveat which could scare away more potential users than it saves. The retention of values from previous executions applies only to global variab

Re: Getting a / when regex should produce nothing

2010-04-26 Thread André Warnier
Chris Bennett wrote: ... I have not regretted it. I have learned many details that I could have overlooked with regular perl. Mod_perl is more unforgiving of not knowing exactly what my variables are doing and what values they hold Perl and nod_perl are very deterministic, and there is no my

Re: Getting a / when regex should produce nothing

2010-04-26 Thread Chris Bennett
I started learning mod_perl versus regular perl for web applications for two reasons. Mod_perl is much faster, but that was only an interest, not quite strong enough to push the effort, despite seeing many applications that are horribly slow without it. When someone said that using mod_perl was

Re: Getting a / when regex should produce nothing

2010-04-26 Thread André Warnier
Michael Ludwig wrote: André Warnier schrieb am 25.04.2010 um 12:44:56 (+0200): ... no warnings 'uninitialized'; is very dubious. I used to think so, too, but I've recently changed my mind. ... Michael, I have no doubt that your intrinsic perl knowledge surpasses mine, but I disagree, not