Skip to content

Commit

Permalink
Simplify error message if BigFloat is missing
Browse files Browse the repository at this point in the history
Normally this would be present but possibly a perl was built without it.
  • Loading branch information
mknos committed Mar 21, 2024
1 parent 0a4e9b0 commit 9dd541b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/bc
Original file line number Diff line number Diff line change
Expand Up @@ -2034,10 +2034,10 @@ sub command_line()
while (@ARGV) {
my $f = shift @ARGV;
if ($f eq '-b') {
require Math::BigFloat;
eval { require Math::BigFloat } or die "This program requires the Math::BigFloat module\n";
$bignum = 1;
} elsif ($f eq '-d') {
require Data::Dumper;
eval { require Data::Dumper } or die "This program requires the Data::Dumper module\n";
$debug = 1;
} elsif ($f eq '-y') {
$yydebug = 1;
Expand Down

0 comments on commit 9dd541b

Please sign in to comment.