Subject: | bdiv() doesn't work in list context |
The documentation says that Math::BigRat->bdiv() should work like Math::BigInt->bdiv(), but the behavious doesn't match this. The following shows the current behaviour:
$ perl -MMath::BigRat -wle 'print for Math::BigRat -> new("355") -> bdiv("113")'
355/113
This is the documented behaviour:
$ perl -Ilib -MMath::BigRat -wle 'print for Math::BigRat -> new("355") -> bdiv("113")'
3
16
By the way, the comments in the code for bdiv() says "TODO: list context", so it seems that the author is aware of this.