[mrtg] Possible precedence problem on bitwise | operator SOLUTION!!!

Croson, John JCroson at ramart.org
Tue Sep 30 18:22:19 MEST 2003


Dug around on Google, and it appears my previous post to this group was right. Perl updated to (RedHat 8, 9) perl-5.8.0-88.3 and it appears that this is a "feature" of Perl. The "precedence problem" is a warning from Perl, not an error on MTRG's part.

Got my first clue here:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=1059331383.29103%40strabo.loghyr.farmgate&rnum=6&prev=/groups%3Fq%3DPossible%2Bprecedence%2Bproblem%2Bon%2Bbitwise%2B%257C%2Boperator%2Bat%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D1059331383.29103%2540strabo.loghyr.farmgate%26rnum%3D6

And then the solution here:
http://groups.google.com/groups?q=Possible+precedence+problem+on+bitwise+%7C+operator+at&start=30&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=6btcv8%242c4%247%40csnews.cs.colorado.edu&rnum=39

Just do:
vi +619 /usr/lib/../mrtg2/BER.pm
Edit so it looks like this:
    #return error ("Sequence expected") unless $result == sequence_tag | constructor_flag;
    return error ("Sequence expected") unless $result == sequence_tag or constructor_flag;
commenting out the original line, and using the WORD or instead of the bitwise operator | ...................:D

John Croson
Technology Operations Manager
Wustum Museum
Racine Art Museum
441 Main Street
Racine, WI 53405
262-638-8300 ext. 104
fax 262-898-1045

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list