in reply to Bit by a Hex String

please use strict; if possible.
all the variables you use are global variables, so they are overwritten by the recursive call.
the solution is to my all variables.
when you want to double the value of your bitstring, you should call it with shift_bs(0,$source);.

daniel.

Replies are listed 'Best First'.
Re: Re: Bit by a Hex String
by abitkin (Monk) on Aug 29, 2003 at 15:32 UTC
    Well that'll learn me. The one time I didn't use strict. Nice catch.
    ==
    Kwyjibo. A big, dumb, balding North American ape. With no chin.