summaryrefslogtreecommitdiff
path: root/lib/Math/BigFloat.pm
diff options
context:
space:
mode:
authorTels <nospam-abuse@bloodgate.com>2007-05-13 14:34:11 +0000
committerSteve Peters <steve@fisharerojo.org>2007-05-15 17:21:30 +0000
commit2ebb273fc9aef31ef4d91202ea24b0155ec3118c (patch)
tree838b84e382fa664efb578915db17e2e5e0cb020a /lib/Math/BigFloat.pm
parentef3b47fbe05d621a4991cb451b65693b68315c16 (diff)
downloadperl-2ebb273fc9aef31ef4d91202ea24b0155ec3118c.tar.gz
[PATCH] Math::BigInt v1.87
Date: Sun, 13 May 2007 14:34:11 +0000 Message-Id: <200705131434.11992@bloodgate.com> Subject: Re: [PATCH] Math::BigInt v1.87 (take 2) From: Tels <nospam-abuse@bloodgate.com> Date: Mon, 14 May 2007 15:41:36 +0000 Message-Id: <200705141541.40678@bloodgate.com> Subject: Re: [PATCH] Math::BigInt v1.87 (take 3) From: Tels <nospam-abuse@bloodgate.com> Date: Tue, 15 May 2007 19:02:54 +0000 Message-Id: <200705151902.57372@bloodgate.com> p4raw-id: //depot/perl@31222
Diffstat (limited to 'lib/Math/BigFloat.pm')
-rw-r--r--lib/Math/BigFloat.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Math/BigFloat.pm b/lib/Math/BigFloat.pm
index 7c2794ced9..b76776684a 100644
--- a/lib/Math/BigFloat.pm
+++ b/lib/Math/BigFloat.pm
@@ -12,7 +12,7 @@ package Math::BigFloat;
# _a : accuracy
# _p : precision
-$VERSION = '1.57';
+$VERSION = '1.58';
require 5.006002;
require Exporter;
@@ -333,6 +333,12 @@ sub config
# return (later set?) configuration data as hash ref
my $class = shift || 'Math::BigFloat';
+ if (@_ == 1 && ref($_[0]) ne 'HASH')
+ {
+ my $cfg = $class->SUPER::config();
+ return $cfg->{$_[0]};
+ }
+
my $cfg = $class->SUPER::config(@_);
# now we need only to override the ones that are different from our parent