in reply to Re: Dumping bit vector in perl
in thread Dumping bit vector in perl

Thanks, In the mean time I tried using, Bit::Vector::to_Bin it also works.

Replies are listed 'Best First'.
Re^3: Dumping bit vector in perl
by BrowserUk (Patriarch) on Oct 18, 2008 at 12:43 UTC

    You can also save yourself a lot of typing by setting it up as an alias:

    DB<5> =xb x unpack 'b*', xb = x unpack 'b*', DB<6> $_ = 'pqrs' DB<7> xb $_ 0 00001110100011100100111011001110 DB<8> $/ = '1234356577890' DB<9> xb $/ 0 1000110001001100110011000010110011001100101011000110110010101100111 +0110011101100000111001001110000001100

    Be nice if you could put a list of aliases somewhere that would cause them to be loaded each time the debugger is started. I know there is a "db profile", but I can't remember any specifics. It must be in teh docs somewhere?


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.