Subject: | Bitwise & usage causing compilation problems on 5.8.0 |
Text::PDF::Pages has the following block of code:
$test = 1; $i = 0;
foreach $e ($inh->elementsof)
{ $test &= $e->val == $bbox[$i++]; }
return $self if $test && $i == 4;
The "&=" should be "&&=". As it is, some users are getting the
following error message:
Possible precedence problem on bitwise & operator at
/usr/lib/perl5/site_perl/5.8.0/Text/PDF/Pages.pm line 336.
Note: I have not personally experienced this problem, but a user of my
CAM::PDF module reported this error message to me. Nonetheless, the
code clearly has a typo.
Thanks,
Chris