in reply to Re: Bit by a Hex String
in thread Bit by a Hex String
Yeah, the $add is a legacy thing, but that's okay. I want to thank you especially, because you went to quite a bit of work to come up with that code.sub shift_bs{ $add = shift; $source = shift; $num1=Math::BigInt->new("0x".$source); $num1->blsft(1); $num1+=$add; $temp = $num1->as_hex(); $temp =~ /0x(.*)/; return $1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Bit by a Hex String
by Abigail-II (Bishop) on Aug 29, 2003 at 15:45 UTC | |
by abitkin (Monk) on Aug 29, 2003 at 15:52 UTC |