#10 warning with perl 5.8.0 on Redhat 9

closed-fixed
nobody
None
5
2003-07-29
2003-06-01
Che, Dong
No

I use perltidy
Perl-Tidy-20021130.tar.gz
on RedHat 9.
when run perltidy always return following message:
perltidy
Possible precedence problem on bitwise & operator
at /usr/lib/perl5/site_perl/5.8.0/Perl/Tidy.pm line 1840.

perl -v

This is perl, v5.8.0 built for i386-linux-thread-multi
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2002, Larry Wall

Perl may be copied only under the terms of either the
Artistic License or the
GNU General Public License, which may be found in the
Perl 5 source kit.

Complete documentation for Perl, including FAQ lists,
should be found on
this system using `man perl' or `perldoc perl'. If you
have access to the
Internet, point your browser at http://www.perl.com/, the
Perl Home Page.

Discussion

  • Ville Skyttä

    Ville Skyttä - 2003-06-23

    Logged In: YES
    user_id=32457

    Yep, and the fix is trivial:

    --- lib/Perl/Tidy.pm~ 2002-11-30 17:15:39.000000000 +0200
    +++ lib/Perl/Tidy.pm 2003-06-23 23:38:33.000000000 +0300
    @@ -1837,7 +1837,7 @@

    # Unfortunately the logic used for the various versions
    isnt so clever..
    # so we have to handle an outside case.
    - return ( $os eq "2000" & $major != 5 ) ? "NT4" : $os;
    + return ( $os eq "2000" && $major != 5 ) ? "NT4" : $os;
    }

    sub look_for_Windows {

     
  • Steve Hancock

    Steve Hancock - 2003-07-29
    • status: open --> closed-fixed
     

Log in to post a comment.