PDLPorters / PDL-Graphics-Prima

A graphing widget using the Prima toolkit
13 stars 6 forks source link

Warning message on Perl 5.20. #30

Closed aero closed 10 years ago

aero commented 10 years ago

Hi,

Perl 5.20 complains about the following two lines. https://metacpan.org/source/DCMERTENS/PDL-Graphics-Prima-0.16/lib/PDL/Graphics/Prima/PlotType.pm#L1252 https://metacpan.org/source/DCMERTENS/PDL-Graphics-Prima-0.16/lib/PDL/Graphics/Prima/PlotType.pm#L1257

Possible precedence issue with control flow operator at C:/strawberry-perl-5.20-32bit/perl/site/lib/PDL/Graphics/Prima/PlotType.pm line 1252, <DATA> line 207.
Possible precedence issue with control flow operator at C:/strawberry-perl-5.20-32bit/perl/site/lib/PDL/Graphics/Prima/PlotType.pm line 1257, <DATA> line 207.

Need parentheses around return ?

run4flat commented 10 years ago

I wonder how long that's been a bug. I'll fix that and spin a new release shortly.

run4flat commented 10 years ago

I believe this has been fixed in the latest release to CPAN. Let me know if I somehow missed something.