You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jeff Trawick <tr...@gmail.com> on 2010/05/06 15:06:35 UTC

Re: perl 5.12 / mod_perl

On Thu, May 6, 2010 at 8:48 AM, tech_list <te...@womenshealth.com>wrote:

> Thanks!
> Line 96:
> if ($pos >= $[) {         if ($pos >= 0) {
>
> I think this should be changed back.  It is only assignment of $[ that is
> deprecated, correct?
>

My 2cents: If you don't assign to $[ then $[ must be 0 in this Perl source
file.  And comparing with 0 instead of $[ is understandable to more people.


> On May 6, 2010, at 7:45 AM, Jeff Trawick wrote:
>
> 2010/5/6 Torsten Förtsch <to...@gmx.net>:
>
> On Thursday 06 May 2010 13:53:37 tech_list wrote:
>
> [  error] '/usr/local/apache2/bin/apxs -q NOTEST_CPPFLAGS' failed:
>
> [  error] Use of assignment to $[ is deprecated at
>
> /usr/local/apache2/bin/apxs line 86.
>
>
> Okay, I see. My apxs starts with
>
>
>  #!/usr/bin/perl -w
>
>
> and this perl is still 5.10.0.
>
>
> Nevertheless apxs is not part of modperl. Best you'd file bug against
> httpd.
>
>
> In the meantime simply delete line 86 in apxs. $[ is 0 per default. So,
>
> C<local $[=0> is useless. It's usage has been deprecated for a long time.
>
>
> Here's the committed httpd fix:
>
>
> http://svn.apache.org/viewvc/httpd/httpd/trunk/support/apxs.in?r1=807930&r2=932791&diff_format=h
>
> It should be in the next 2.2.x release.
>
>
>


-- 
Born in Roswell... married an alien...

Re: perl 5.12 / mod_perl

Posted by Dan Poirier <po...@pobox.com>.
On 2010-05-06 at 09:06, Jeff Trawick <tr...@gmail.com> wrote:

> On Thu, May 6, 2010 at 8:48 AM, tech_list <te...@womenshealth.com>wrote:
>
>> Thanks!
>> Line 96:
>> if ($pos >= $[) {         if ($pos >= 0) {
>>
>> I think this should be changed back.  It is only assignment of $[ that is
>> deprecated, correct?
>>
>
> My 2cents: If you don't assign to $[ then $[ must be 0 in this Perl source
> file.  And comparing with 0 instead of $[ is understandable to more people.

Agreed, there's no reason to even mention $[ in current Perl code.