in reply to Re^2: Converting Java to Perl (MD5)
in thread Converting Java to Perl (MD5)

The one argument form of the Java BigInteger constructor assumes you're passing in a binary two's complement integer.

Math::BigInt doesn't have a two's complement constructor. You'd need to write one.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Replies are listed 'Best First'.
Re^4: Converting Java to Perl (MD5)
by kunimihk (Initiate) on Feb 27, 2013 at 01:57 UTC
    Oh, I get it. Thank you for your answer!