14.2. Using Object Oriented modules

Example 14-1. examples/cpan/math_bigint.pl

#!/usr/bin/perl
use strict;
use warnings;

use Math::BigInt;
my $x = Math::BigInt->new("1234567890");
my $y = Math::BigInt->new("8234567890");

$x->badd($y);
print $x->bstr, "\n";         # 9469135780

If you are interested in on-site trainings by the author, please contact me directly.

Online courses:

Would you like to get
updated when I publish
the next article?

Follow me:

Google Plus Twitter RSS feed