in reply to Win32::TieRegistry cloning keys bug.

Quoting the f' documentation:

Note that you need to have called $Registry->ArrayValues(1) for the proper value data type information to be copied. Note also that this release of Win32::TieRegistry does not copy key attributes such as class name and security information

- tye        

  • Comment on Re: Win32::TieRegistry cloning keys bug. (ArrayValues)

Replies are listed 'Best First'.
Re^2: Win32::TieRegistry cloning keys bug. (ArrayValues)
by Sioln (Sexton) on Jan 17, 2006 at 15:49 UTC

    I've read about $Registry->ArrayValues(1), but

    $Registry->ArrayValues(1) or die;# - dead $SOURCE->ArrayValues(1) or die;# - dead $DESTINATION->ArrayValues(1) or die;# -dead
    How can I use it ?

      Perhaps you should consider reading the documentation for it?

      ArrayValues

      $oldBool= $key->ArrayValues

      $oldBool= $key->ArrayValues( $newBool )

      Gets the current setting of the ArrayValues option and possibly turns it on or off.

      So I'm not sure why you feel "the current setting" being false justifies dieing.

      - tye        

        Thank you.
        use Win32::TieRegistry; my $SOURCE=$Registry->Connect( '127.0.0.1','LMachine',{Delimiter=>"\\" +}) or die; my $REMOTE=$Registry->Connect( 'bdc','LMachine',{Delimiter=>"\\"}) or +die; my $folder="SYSTEM\\RAdmin\\"; #ArrayValues my $key_source=$SOURCE->Open($folder); $key_source->ArrayValues(1); $REMOTE->{$folder}=$key_source;
        This code works fine.