jenwrenfer has asked for the wisdom of the Perl Monks concerning the following question:

I'm having problems printing out REG_BINARY values using the GetValue() function.

Is there a conversion process I need to perform in order for it to print out the string correctly? If so, what is it?

Thanks.

Replies are listed 'Best First'.
Re: TieRegistry REG_BINARY
by tachyon (Chancellor) on Sep 16, 2004 at 12:52 UTC

    If it is binary data and you want it to look like it does in Regedit you need to unpack it as hex.

    print unpack "h*", $binary_data;

    cheers

    tachyon

Re: TieRegistry REG_BINARY
by zejames (Hermit) on Sep 16, 2004 at 12:55 UTC
    First, I'd advise you to have a look at How (Not) To Ask A Question. You should tell us your OS (Windows), the module you want to use (Win32::Registry) and show your code.

    Then, we'll be very happy to help you.


    --
    zejames