Subject: | upcoming problem with round() |
http://www.cpantesters.org/cpan/report/099ad582-4b64-11e4-b9f8-7b352c6f0924
Forewarning about Perl 5.22 (due out spring 2015).
The good news is that the math APIs of the POSIX module will be expanded, one addition will be round().
(To complement the ceil() and floor, all definitions taken as from the C99 standard.)
The bad news is that by default the POSIX module exports *everything*. Including the round(). If someone uses both
Math::Round *and* POSIX *and* they do the export-all (which cannot be changed, because of backward compatibility),
there will be a naming conflict and crash in module startup.
Suggested cure: instead of exporting everything from the POSIX module, export nothing,
and explicitly prefix the uses of POSIX interfaces, e.g.
use POSIX (); # The () is the explicit nothing.
...
.... POSIX::whatever() ...