Re: -Wdeclaration-after-statement Final version

2005-08-22 Thread Philip M. Gollucci
Philippe M. Chiasson wrote: Isn't "return;" the more canonical way of returning false ? Beats me... I know a lot of the mp2 code particular Apache2::Status as I was just digging in there uses return 0. I really have no preference. Minor nit, but wouldn't my @tuples = split /\./, $has_versi

Re: MP2 + Bleedperl broken

2005-08-22 Thread Stas Bekman
Philip M. Gollucci wrote: Philip M. Gollucci wrote: cat .patch 25309 Some notes: The last time I did this it was 25216. The version that Stas said works for him was 25292 Unless I am insane, 25309 is NEWER then both. So I checked directly in the Perforce repository via the web tool. 25309

Re: [PATCH] Apache2::Reload

2005-08-22 Thread Philippe M. Chiasson
Stas Bekman wrote: > Philippe M. Chiasson wrote: >> Geoffrey Young wrote: >> -while (my($key, $file) = each %Apache2::Reload::INCS) { +foreach my $key (sort { $a cmp $b } keys %Apache2::Reload::INCS) { +my $file = $Apache2::Reload::INCS{$key}; > >>> I hate each. >> >

Re: [PATCH] Apache2::Reload

2005-08-22 Thread Stas Bekman
Philippe M. Chiasson wrote: Geoffrey Young wrote: -while (my($key, $file) = each %Apache2::Reload::INCS) { +foreach my $key (sort { $a cmp $b } keys %Apache2::Reload::INCS) { +my $file = $Apache2::Reload::INCS{$key}; I hate each. each is perfect when iterating over a large

Re: [PATCH] Apache2::Reload

2005-08-22 Thread Philippe M. Chiasson
Geoffrey Young wrote: >>-while (my($key, $file) = each %Apache2::Reload::INCS) { >>+foreach my $key (sort { $a cmp $b } keys %Apache2::Reload::INCS) { >>+my $file = $Apache2::Reload::INCS{$key}; > > I hate each. each is perfect when iterating over a large hash and not caring about

Re: -Wdeclaration-after-statement Final version

2005-08-22 Thread Philippe M. Chiasson
Philip M. Gollucci wrote: > Philippe M. Chiasson wrote: > >> A better patch might be to first check if we already have that option >> from Perl, >> otherwise, try and figure out if it's safe to add it ourselves. > > Okay, as requested, I've functionalized this and added a check to make sure > $cc

Re: [PATCH] Apache2::Status fixes

2005-08-22 Thread Geoffrey Young
Philip M. Gollucci wrote: > Geoffrey Young wrote: > >> shouldn't there be some kind of version requirements on special >> versions of >> those modules, then? or do are things broken now but visible, and the >> patches to the B:: modules fix the brokenness? > > Yes, I don't believe most of what

Re: [PATCH] Apache2::Status fixes

2005-08-22 Thread Philip M. Gollucci
Geoffrey Young wrote: shouldn't there be some kind of version requirements on special versions of those modules, then? or do are things broken now but visible, and the patches to the B:: modules fix the brokenness? Yes, I don't believe most of what I changed ever worked at least since RC5 witho

Re: [PATCH] Apache2::Status fixes

2005-08-22 Thread Geoffrey Young
Philip M. Gollucci wrote: > This patch does the following: > > o Set some minium version for things I'm finally seeing work. > o s/Apache2::Peek/Apache::Peek/g this package is both 1.x and 2.x series. > o moved the defined ness check for $mod_ver before the regex. > there was at least one modu

Re: [PATCH] Apache2::Reload

2005-08-22 Thread Geoffrey Young
> -while (my($key, $file) = each %Apache2::Reload::INCS) { > +foreach my $key (sort { $a cmp $b } keys %Apache2::Reload::INCS) { > +my $file = $Apache2::Reload::INCS{$key}; I hate each. +1 --Geoff - To unsubscr