summaryrefslogtreecommitdiff
path: root/demos/perl
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2003-12-08 01:29:15 +0100
committerKevin Ryde <user42@zip.com.au>2003-12-08 01:29:15 +0100
commit5e40f85d4ced86978271e80bc71e3769237e7072 (patch)
tree4bed68f3cc8a7bd408affead3fd68bbdd2451c1b /demos/perl
parent02c86a8bb110e4a8230803d0c11f31893594c2ec (diff)
downloadgmp-5e40f85d4ced86978271e80bc71e3769237e7072.tar.gz
* demos/perl/GMP.pm: Correction to canonicalize example.
And reword the freebsd 5.005 constants problem.
Diffstat (limited to 'demos/perl')
-rw-r--r--demos/perl/GMP.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/perl/GMP.pm b/demos/perl/GMP.pm
index 05626714f..d1b46ac87 100644
--- a/demos/perl/GMP.pm
+++ b/demos/perl/GMP.pm
@@ -248,7 +248,7 @@ always represented as 0/1. If not then C<canonicalize> can be called to put
it in that form. For example,
use GMP::Mpq qw(:all);
- $q = mpq(21,15); # eek! common factor 5
+ $q = mpq(21,15); # eek! common factor 3
canonicalize($q); # get rid of it
The following overloaded operators are available, and corresponding
@@ -569,9 +569,9 @@ GMP manual, L<perl>, L<overload>.
=head1 BUGS
-The overloaded constants sometimes provoke seg faults from perl 5.005_03 on
-i386 FreeBSD. Don't know if that's a perl bug or a GMP module bug, though
-it does seem to go bad before reaching anything in GMP.xs.
+In perl 5.005_03 on i386 FreeBSD, the overloaded constants sometimes provoke
+seg faults. Don't know if that's a perl bug or a GMP module bug, though it
+does seem to go bad before reaching anything in GMP.xs.
There's no way to specify an arbitrary base when converting a string to an
mpz (or mpq or mpf), only hex or octal with 0x or 0 (for mpz and mpq, but