tperdue has asked for the wisdom of the Perl Monks concerning the following question:
$a and $b are both 64 bit codewords I entered as binary.$veca = Bit::Vector->new_Bin(64, $a); $vecb = Bit::Vector->new_Bin(64, $b);
When printed $veca is Bit::Vector=SCALAR(0x224ef0)
and $vecb is Bit::Vector=SCALAR(0x224fa4).
I try to get the GCD by using the following code: $vecgcd->GCD($veca,$vecb);
I get the error:
'Can't call method on and undefined value at C:\test.pl line
27'.
Any ideas as to why this won't work.
Edited by Chady -- some formatting and code tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't get GCD to work in Bit::Vector module
by antirice (Priest) on Jun 18, 2004 at 14:57 UTC | |
by tperdue (Sexton) on Jun 18, 2004 at 15:11 UTC |